Re: scsi_requeue_command and dropping reference to sdev_gendev

2012-07-24 Thread Ani Sinha
> > commit 940f5d47e2f2e1fa00443921a0abf4822335b54d > Author: Bart Van Assche > Date: Fri Jun 29 15:34:26 2012 + > > [SCSI] Avoid dangling pointer in scsi_requeue_command() > > James Thanks James. We have been only looking at Torvalds' tree and I think this fix hasn't been pulled in ye

scsi_requeue_command and dropping reference to sdev_gendev

2012-07-23 Thread Ani Sinha
Hi : I am looking at the latest upstream code and I see a potential issue : - scsi_requeue_command() drops reference to scsi_device->sdev_gendev in scsi_unprep_request->scsi_put_command()->__scsi_put_command(). This can trigger the cleanup routine scsi_device_dev_release_usercontext() that will d