diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-11-24 16:03:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-25 02:40:35 +0100 |
commit | 3c18aa1464f9232d6abac8d7b4540f61b0658d62 (patch) | |
tree | f0a0602eebf761b741426a62a03450ca6d95a6eb /tools/testing/selftests/net/txring_overwrite.c | |
parent | cxgb4: remove set but not used variables 'multitrc, speed' (diff) | |
download | linux-3c18aa1464f9232d6abac8d7b4540f61b0658d62.tar.xz linux-3c18aa1464f9232d6abac8d7b4540f61b0658d62.zip |
net: qualcomm: rmnet: move null check on dev before dereferecing it
Currently dev is dereferenced by the call dev_net(dev) before dev is null
checked. Fix this by null checking dev before the potential null
pointer dereference.
Detected by CoverityScan, CID#1462955 ("Dereference before null check")
Fixes: 23790ef12082 ("net: qualcomm: rmnet: Allow to configure flags for existing devices")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions