[SCSI] libfc: fix mm leak in handling incoming request for target discovery
commit83383dd11a445bbe493c75b9c88c243aa43df8d7
authorHillf Danton <dhillf@gmail.com>
Mon, 16 May 2011 23:45:35 +0000 (16 16:45 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:36:41 +0000 (24 12:36 -0400)
treeee07e934da9afe147c49faadc7289948b34d37ea
parentbdf252183e58654fcceedbf3fdcfd878b9e4f2d6
[SCSI] libfc: fix mm leak in handling incoming request for target discovery

When handling incoming request, if the operation code carried by the
received frame is not RSCN, the frame should be freed as in the RSCN
case, or there is memory leakage.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/libfc/fc_disc.c