aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <[email protected]>2009-02-12 17:00:20 -0800
committerDavid S. Miller <[email protected]>2009-02-12 17:00:20 -0800
commit1d7b33f77b2d8b0b1ee767e6f8f05cbd9d72cb7c (patch)
tree1ed9c919ee096fa0d97cb283ccb074e40898010d /drivers/scsi/scsi_debug.c
parentdf0bca049d01c0ee94afb7cd5dfd959541e6c8da (diff)
wimax: fix oops in wimax_dev_get_by_genl_info() when looking up non-wimax iface
When a non-wimax interface is looked up by the stack, a bad pointer is returned when the looked-up interface is not found in the list (of registered WiMAX interfaces). This causes an oops in the caller when trying to use the pointer. Fix by properly setting the pointer to NULL if we don't exit from the list_for_each() with a found entry. Signed-off-by: Inaky Perez-Gonzalez <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions