summaryrefslogtreecommitdiff
path: root/net/mac80211/agg-rx.c
diff options
context:
space:
mode:
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>2009-11-18 01:10:11 +0300
committerJames Bottomley <James.Bottomley@suse.de>2009-11-26 19:04:22 +0300
commit4e46bf89972b9d98a9f282a9fed2359756a5e34e (patch)
tree7e55e191d74412735f8e9cd96e50dd50f34b9a5e /net/mac80211/agg-rx.c
parent860dc73608a091e0b325218acc2701709d5f221a (diff)
downloadlinux-4e46bf89972b9d98a9f282a9fed2359756a5e34e.tar.xz
[SCSI] fix crash when disconnecting usb storage
__scsi_remove_device() in scsi_forget_host() is executed out of scan_mutex and races with scsi_destroy_sdev() <- scsi_sysfs_add_devices() <- scsi_finish_async_scan(). The result is use after free and/or double free, oops. The fix is simple, move scsi_forget_host() under scan_mutex. scsi_forget_host() is just sequence of __scsi_remove_device(). All another calls of __scsi_remove_device() are made under scan_mutex. So that it is safe. Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'net/mac80211/agg-rx.c')
0 files changed, 0 insertions, 0 deletions