aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2012-02-04 20:54:03 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-20 12:48:11 -0800
commita5e2201319ef3c88cf8d777466c0e097625ba942 (patch)
tree5a117e1300f8112093370a294a0d04849e6e1f13 /drivers/gpio
parent36935521cd67e3df9a1db71591cf224252d6082c (diff)
downloadkernel_samsung_tuna-a5e2201319ef3c88cf8d777466c0e097625ba942.zip
kernel_samsung_tuna-a5e2201319ef3c88cf8d777466c0e097625ba942.tar.gz
kernel_samsung_tuna-a5e2201319ef3c88cf8d777466c0e097625ba942.tar.bz2
writeback: fix dereferencing NULL bdi->dev on trace_writeback_queue
commit 977b7e3a52a7421ad33a393a38ece59f3d41c2fa upstream. When a SD card is hot removed without umount, del_gendisk() will call bdi_unregister() without destroying/freeing it. This leaves the bdi in the bdi->dev = NULL, bdi->wb.task = NULL, bdi->bdi_list removed state. When sync(2) gets the bdi before bdi_unregister() and calls bdi_queue_work() after the unregister, trace_writeback_queue will be dereferencing the NULL bdi->dev. Fix it with a simple test for NULL. LKML-reference: http://lkml.org/lkml/2012/1/18/346 Reported-by: Rabin Vincent <rabin@rab.in> Tested-by: Namjae Jeon <linkinjeon@gmail.com> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions