Files
linux/drivers
Hannes Reinecke ea240cfed9 sd: get disk reference in sd_check_events()
commit eb72d0bb84eee5d0dc3044fd17b75e7101dabb57 upstream.

sd_check_events() is called asynchronously, and might race
with device removal. So always take a disk reference when
processing the event to avoid the device being removed while
the event is processed.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Jinpu Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:37:26 +01:00
..
2016-09-24 10:07:35 +02:00
2017-03-12 06:37:24 +01:00
2017-01-12 11:22:47 +01:00
2017-02-23 17:43:10 +01:00
2016-12-08 07:15:24 +01:00
2017-02-26 11:07:50 +01:00
2016-11-26 09:54:53 +01:00
2016-08-20 18:09:22 +02:00