Heiner Kallweit
ce42e0de85
r8169: fix setting driver_data after register_netdev
...
[ Upstream commit 19c9ea363a ]
pci_set_drvdata() is called only after registering the net_device,
therefore we could run into a NPE if one of the functions using
driver_data is called before it's set.
Fix this by calling pci_set_drvdata() before registering the
net_device.
This fix is a candidate for stable. As far as I can see the
bug has been there in kernel version 3.2 already, therefore
I can't provide a reference which commit is fixed by it.
The fix may need small adjustments per kernel version because
due to other changes the label which is jumped to if
register_netdev() fails has changed over time.
Reported-by: David Miller <davem@davemloft.net >
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-04-13 19:50:27 +02:00
..
2018-04-13 19:50:21 +02:00
2018-02-28 10:17:23 +01:00
2018-04-13 19:50:06 +02:00
2017-12-16 10:33:55 +01:00
2018-01-31 12:06:08 +01:00
2017-03-12 06:37:30 +01:00
2018-04-13 19:50:19 +02:00
2018-03-28 18:40:13 +02:00
2018-04-13 19:50:05 +02:00
2018-04-13 19:50:24 +02:00
2018-04-13 19:50:16 +02:00
2017-10-27 10:23:17 +02:00
2016-01-04 21:46:45 -05:00
2018-04-08 11:52:02 +02:00
2018-04-13 19:50:21 +02:00
2018-02-25 11:03:55 +01:00
2018-02-22 15:44:58 +01:00
2018-04-13 19:50:14 +02:00
2015-10-30 01:16:16 -04:00
2018-04-13 19:50:23 +02:00
2017-11-21 09:21:18 +01:00
2016-11-10 16:36:35 +01:00
2017-12-20 10:04:56 +01:00
2015-11-24 15:25:46 -08:00
2018-04-13 19:50:14 +02:00
2018-04-13 19:50:16 +02:00
2018-03-22 09:23:27 +01:00
2018-03-24 10:58:42 +01:00
2018-02-25 11:03:46 +01:00
2018-04-13 19:50:13 +02:00
2016-02-25 12:01:23 -08:00
2018-03-24 10:58:48 +01:00
2018-03-24 10:58:41 +01:00
2015-11-06 17:50:42 -08:00
2018-02-25 11:03:51 +01:00
2018-04-13 19:50:21 +02:00
2018-04-13 19:50:01 +02:00
2018-04-13 19:50:11 +02:00
2018-03-24 10:58:48 +01:00
2018-03-22 09:23:31 +01:00
2018-04-13 19:50:16 +02:00
2018-04-13 19:50:09 +02:00
2016-09-24 10:07:35 +02:00
2015-10-15 20:31:59 +11:00
2017-08-06 19:19:41 -07:00
2016-06-01 12:15:53 -07:00
2018-04-13 19:50:22 +02:00
2018-04-13 19:50:18 +02:00
2017-12-16 10:33:51 +01:00
2016-10-28 03:01:35 -04:00
2018-02-25 11:03:45 +01:00
2018-03-24 10:58:44 +01:00
2018-04-13 19:50:02 +02:00
2018-03-28 18:40:13 +02:00
2018-04-08 11:51:55 +02:00
2018-04-13 19:50:27 +02:00
2018-03-22 09:23:23 +01:00
2017-08-30 10:19:29 +02:00
2017-11-30 08:37:23 +00:00
2018-02-16 20:09:47 +01:00
2017-08-06 19:19:46 -07:00
2018-03-22 09:23:21 +01:00
2018-01-02 20:33:20 +01:00
2018-04-08 11:52:00 +02:00
2018-04-08 11:52:01 +02:00
2016-04-20 15:42:09 +09:00
2018-03-22 09:23:26 +01:00
2018-01-23 19:50:16 +01:00
2018-03-24 10:58:48 +01:00
2018-03-24 10:58:47 +01:00
2016-08-16 09:30:48 +02:00
2018-03-24 10:58:45 +01:00
2018-04-13 19:50:05 +02:00
2016-08-10 11:49:25 +02:00
2018-03-24 10:58:40 +01:00
2018-03-22 09:23:27 +01:00
2018-03-24 10:58:40 +01:00
2016-08-20 18:09:20 +02:00
2018-04-13 19:50:15 +02:00
2018-04-13 19:50:21 +02:00
2018-04-13 19:50:22 +02:00
2016-03-09 15:34:49 -08:00
2016-09-24 10:07:42 +02:00
2018-04-08 11:52:02 +02:00
2017-07-27 15:06:10 -07:00
2018-02-25 11:03:44 +01:00
2018-04-13 19:50:05 +02:00
2018-03-24 10:58:45 +01:00
2018-04-13 19:50:12 +02:00
2016-06-01 12:15:53 -07:00
2018-04-13 19:50:22 +02:00
2016-10-31 04:13:59 -06:00
2018-04-13 19:50:07 +02:00
2017-10-12 11:27:35 +02:00
2017-08-06 19:19:46 -07:00
2018-04-13 19:50:25 +02:00
2018-04-13 19:50:13 +02:00
2018-02-25 11:03:42 +01:00
2017-01-19 20:17:21 +01:00
2017-03-12 06:37:29 +01:00
2018-03-18 11:17:50 +01:00
2018-03-03 10:19:45 +01:00
2015-11-04 22:15:15 -08:00
2018-02-25 11:03:38 +01:00