Re: [PATCH 2/2] SCSI: Fix NULL pointer dereference in runtime PM

2015-12-03 Thread Jens Axboe
On 11/30/2015 11:45 PM, Ken Xue wrote: The routines in scsi_pm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean that the device's driver has asked the block layer to handle the runtime power management (by calling blk_pm_runtime_init(), which among other

Re: [PATCH 2/2] SCSI: Fix NULL pointer dereference in runtime PM

2015-12-03 Thread Jens Axboe
On 11/30/2015 11:45 PM, Ken Xue wrote: The routines in scsi_pm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean that the device's driver has asked the block layer to handle the runtime power management (by calling blk_pm_runtime_init(), which among other

[PATCH 2/2] SCSI: Fix NULL pointer dereference in runtime PM

2015-11-30 Thread Ken Xue
The routines in scsi_pm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean that the device's driver has asked the block layer to handle the runtime power management (by calling blk_pm_runtime_init(), which among other things sets q->dev). However, this

[PATCH 2/2] SCSI: Fix NULL pointer dereference in runtime PM

2015-11-30 Thread Ken Xue
The routines in scsi_pm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean that the device's driver has asked the block layer to handle the runtime power management (by calling blk_pm_runtime_init(), which among other things sets q->dev). However, this