diff options
| author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-17 14:02:09 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-16 19:44:56 +0200 |
| commit | 1652d1194af5a8adbc711bd0b99dc09ff60dda18 (patch) | |
| tree | 268ded5716dea69139a4f9e5c5582c907bf5ecb8 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 4f2df9fd07698bece3321fbf9e4b6dbcb9babccc (diff) | |
usbnet: ipheth: fix potential null pointer dereference in ipheth_carrier_set
commit 61c59355e0154a938b28710dfa6c1d8be2ddcefa upstream.
_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>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
