aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2013-08-13 11:45:13 -0700
committerDavid S. Miller <[email protected]>2013-08-15 13:41:20 -0700
commit6829309926b90c4c32d1f4cafeb600cd34a721e3 (patch)
tree3098cd027df9c533003000ccfdae9f570691e049 /lib/test-string_helpers.c
parent8a8e3d84b1719a56f9151909e80ea6ebc5b8e318 (diff)
net: tg3: fix NULL pointer dereference in tg3_io_error_detected and tg3_io_slot_reset
Commit d8af4dfd8 ("net/tg3: Fix kernel crash") introduced a possible NULL pointer dereference in tg3 driver when !netdev || !netif_running(netdev) condition is met and netdev is NULL. Then, the jump to the 'done' label calls dev_close() with a netdevice that is NULL. Therefore, only call dev_close() when we have a netdevice, but one that is not running. [ Add the same checks in tg3_io_slot_reset() per Gavin Shan - by Nithin Nayak Sujir ] Reported-by: Dave Jones <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Cc: Gavin Shan <[email protected]> Cc: Michael Chan <[email protected]> Signed-off-by: Nithin Nayak Sujir <[email protected]> Signed-off-by: Nithin Nayak Sujir <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions