From: Bart Van Assche Date: Fri, 29 Jun 2012 15:34:26 +0000 (+0000) Subject: [SCSI] Avoid dangling pointer in scsi_requeue_command() X-Git-Tag: v3.6-rc1~103^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=940f5d47e2f2e1fa00443921a0abf4822335b54d;p=pandora-kernel.git [SCSI] Avoid dangling pointer in scsi_requeue_command() When we call scsi_unprep_request() the command associated with the request gets destroyed and therefore drops its reference on the device. If this was the only reference, the device may get released and we end up with a NULL pointer deref when we call blk_requeue_request. Reported-by: Mike Christie Signed-off-by: Bart Van Assche Reviewed-by: Mike Christie Reviewed-by: Tejun Heo Cc: [jejb: enhance commend and add commit log for stable] Signed-off-by: James Bottomley --- Reading git-diff-tree failed