Jakub Kicinski c383bdd14f nfp: fix potential use after free on xdp prog
We should unregister the net_device first, before we give back
our reference on xdp_prog.  Otherwise xdp_prog may be freed
before .ndo_stop() disabled the datapath.  Found by code inspection.

Fixes: ecd63a0217d5 ("nfp: add XDP support in the driver")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-05 18:46:40 -07:00
..
2017-02-03 11:13:17 -05:00
2017-02-27 18:43:47 -08:00
2017-02-05 16:11:57 -05:00
2017-02-09 17:24:29 -05:00
2017-02-05 16:11:57 -05:00
2017-03-08 22:17:10 -08:00
2017-03-08 22:17:10 -08:00
2017-02-17 12:42:24 -05:00