Matthias Kaehlcke
0c3a8f8b8f
netpoll: Fix device name check in netpoll_setup()
...
Apparently netpoll_setup() assumes that netpoll.dev_name is a pointer
when checking if the device name is set:
if (np->dev_name) {
...
However the field is a character array, therefore the condition always
yields true. Check instead whether the first byte of the array has a
non-zero value.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-07-26 17:01:43 -07:00
..
2017-07-12 14:39:43 -07:00
2014-11-18 15:26:32 -05:00
2017-07-19 13:33:24 -07:00
2017-07-12 16:26:03 -07:00
2017-06-05 11:24:28 -04:00
2017-03-12 23:47:16 -07:00
2016-03-18 17:45:08 -04:00
2017-06-25 11:42:01 -04:00
2017-06-30 02:04:10 -04:00
2017-07-13 13:43:54 -07:00
2017-07-13 09:18:46 -07:00
2017-06-04 18:12:23 -04:00
2017-04-03 19:04:48 -07:00
2016-12-24 11:46:01 -08:00
2016-12-05 15:21:59 -05:00
2017-04-25 13:33:49 -04:00
2016-05-25 12:35:09 -07:00
2015-04-02 14:04:59 -04:00
2017-05-30 11:55:32 -04:00
2017-05-30 11:55:32 -04:00
2017-02-08 14:38:18 -05:00
2017-07-15 12:44:02 -07:00
2017-07-01 07:39:09 -07:00
2017-06-04 19:52:58 -04:00
2017-07-01 07:39:09 -07:00
2015-11-22 11:54:10 -05:00
2017-03-22 10:32:46 -07:00
2015-05-31 00:03:21 -07:00
2017-07-26 17:01:43 -07:00
2017-03-28 22:46:04 -07:00
2017-07-01 07:39:07 -07:00
2015-11-03 11:08:22 -05:00
2016-12-29 11:38:31 -05:00
2017-07-20 15:23:22 -07:00
2017-03-02 08:42:29 +01:00
2017-06-08 10:53:29 -04:00
2017-07-12 16:26:03 -07:00
2017-04-13 13:58:20 -04:00
2017-04-03 19:06:38 -07:00
2017-07-05 12:31:59 -07:00
2017-03-02 08:42:29 +01:00
2017-05-25 13:12:17 -04:00
2015-07-09 14:17:15 -07:00
2015-10-26 22:24:22 -07:00
2017-05-02 16:40:27 -07:00