[SCSI] libfc: Don't assume response request present.
authorHugh Daschbach <hdasch@broadcom.com>
Thu, 21 Jan 2010 18:15:55 +0000 (10:15 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 17 Feb 2010 15:57:01 +0000 (09:57 -0600)
commitb248df30fca3aeee1d650b570e8cbc4e8cc45710
treefefe362a9c9513aa3a0e59a643827952d5ad383e
parent3b709150b73205710d05128b925090aac048ed23
[SCSI] libfc: Don't assume response request present.

Fix NULL pointer dereference crash occurs in fc_lport_bsg_request()
for bsg requests that do not contain a response request.
Specifically, FC_BSG_HST_ADD_RPORT and FC_BSG_HST_DEL_RPORT bsg
requests are not guaranteed to include a response request.

Signed-off-by: Hugh Daschbach <hdasch@broadcom.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_lport.c