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-27 18:43:47 -08:00
2017-02-22 11:44:32 -08:00
2017-02-11 20:59:41 -05:00
2017-03-08 22:19:17 -08:00
2017-03-13 21:53:48 -07:00
2017-03-01 09:58:31 -08:00
2017-02-27 18:43:47 -08:00
2017-02-11 20:59:41 -05:00
2017-03-13 16:03:42 -07:00