[SCSI] libfc: fix referencing to fc_fcp_pkt from the frame pointer via fr_fsp()
authorYi Zou <yi.zou@intel.com>
Thu, 25 Aug 2011 19:41:03 +0000 (12:41 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 29 Aug 2011 02:40:30 +0000 (19:40 -0700)
commit3ee17f59c5378af8d245f82498e3919b7de2ab40
tree42690748a14a6fcd022bab3f35a60da2fac30c77
parent21cc0bd3a9e524b44a4f0ff05ac612aa0ff1a26e
[SCSI] libfc: fix referencing to fc_fcp_pkt from the frame pointer via fr_fsp()

In commit 6a716a8, while releasing the DDP context in case frame_send() failed,
the frame may already be freed, so we should store the pointer to fc_fcp_pkt and
release the DDP context using the locally stored fsp instead of getting fsp from
the fr_fsp(fp) on a frame.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Reported-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libfc/fc_exch.c