[SCSI] libfc: Fixing a memory leak when destroying an interface
authorParikh, Neerav <neerav.parikh@intel.com>
Fri, 25 Feb 2011 23:02:51 +0000 (15:02 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 1 Mar 2011 00:28:45 +0000 (18:28 -0600)
commitfe5e3f1aec310779a4b830022a26842b8d587228
tree03de79c89ad0a9d725e7bca2b952a7279e8ff135
parent00fa2b191b4bd74e9d22ac177e3d9e8ecd3582d3
[SCSI] libfc: Fixing a memory leak when destroying an interface

When an fcoe interface is being destroyed; in the process the
fcoe driver will try to release all the resources it had allocated
for that interface including rports. But, it seems that it does not
release the reference held for the name server rport in that process
resulting into a memory leak. This patch fixes that memory leak.

Signed-off-by: Neerav Parikh <neerav.parikh@intel.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 <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_rport.c