summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.c
diff options
context:
space:
mode:
authorSagi Grimberg2015-05-20 11:38:58 +0200
committerJames Bottomley2015-06-03 02:26:32 +0200
commit4ce30874f561faa15e87fcf0592eee14c26cb78b (patch)
treeb2663cad1c58dc8cc3cbddd470a1cd2d6833b335 /drivers/scsi/lpfc/lpfc_hbadisc.c
parentips: remove pointless #warning (diff)
downloadkernel-qcow2-linux-4ce30874f561faa15e87fcf0592eee14c26cb78b.tar.gz
kernel-qcow2-linux-4ce30874f561faa15e87fcf0592eee14c26cb78b.tar.xz
kernel-qcow2-linux-4ce30874f561faa15e87fcf0592eee14c26cb78b.zip
iscsi: Fix iscsi endpoints leak
When creating a new endpoint, we look for a free id for the new endpoint. We baisically loop on possible ids and use the first id that class_find_device() returns NULL. However, we are missing a reference put when class_find_device() does find an existing device for a given id. Reported-by: Alex Lyakas <alex@zadarastorage.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
0 files changed, 0 insertions, 0 deletions