Gustavo A. R. Silva 61c59355e0 usbnet: ipheth: fix potential null pointer dereference in ipheth_carrier_set
_dev_ is being dereferenced before it is null checked, hence there
is a potential null pointer dereference.

Fix this by moving the pointer dereference after _dev_ has been null
checked.

Addresses-Coverity-ID: 1462020
Fixes: bb1b40c7cb86 ("usbnet: ipheth: prevent TX queue timeouts when device not ready")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-19 12:23:57 +09:00
..
2017-04-03 19:09:40 -07:00
2017-04-03 19:09:40 -07:00
2017-04-25 10:08:16 -04:00
2017-04-03 19:09:40 -07:00
2017-06-16 11:48:40 -04:00
2017-04-25 10:08:16 -04:00
2017-04-03 19:09:40 -07:00
2017-06-16 11:48:40 -04:00