diff options
author | Gustavo A. R. Silva <[email protected]> | 2017-11-17 14:02:09 -0600 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-11-19 12:23:57 +0900 |
commit | 61c59355e0154a938b28710dfa6c1d8be2ddcefa (patch) | |
tree | 965c9f92f32d6d69c92e60e1289f0274cbc1085b /net/ipv4/tcp_output.c | |
parent | 981542c526ecd846920bc500e9989da906ee9fb9 (diff) |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions