diff options
author | Benjamin Herrenschmidt <[email protected]> | 2009-06-10 12:43:02 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2009-07-12 13:02:09 -0700 |
commit | eb8d3c604fe7496323efb9a858bef84c489ca584 (patch) | |
tree | fe47cc2d57f7a7e2ba7936b7a89bbd49caf5bb5c /net/lapb/lapb_subr.c | |
parent | 81e4e1ba7ed4a1fdcf0e2ee944f1575010471464 (diff) |
devres: WARN() and return, don't crash on device_del() of uninitialized device
I just debugged an obscure crash caused by a device_del() of a all NULL'd
out struct device (in usb-serial) and found that a patch like this one would
have saved me time (in addition to improved chances of a bug report from
users hitting similar driver bugs).
[[email protected]: cleanup]
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Cc: Kay Sievers <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions