summaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-17 17:01:30 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-19 14:13:14 +0200
commit22ce97fe49b5522e0f97b7c2282ed71a1abd7410 (patch)
tree9117bf5372fd50adbfc458f7542c98ed5c0338d9 /drivers/net/tun.c
parentthunderbolt: Right shifting to zero bug in tbnet_handle_packet() (diff)
downloadlinux-22ce97fe49b5522e0f97b7c2282ed71a1abd7410.tar.xz
linux-22ce97fe49b5522e0f97b7c2282ed71a1abd7410.zip
mqprio: fix potential null pointer dereference on opt
The pointer opt has a null check however before for this check opt is dereferenced when len is initialized, hence we potentially have a null pointer deference on opt. Avoid this by checking for a null opt before dereferencing it. Detected by CoverityScan, CID#1458234 ("Dereference before null check") Fixes: 4e8b86c06269 ("mqprio: Introduce new hardware offload mode and shaper in mqprio") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions