diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-01-14 20:39:56 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-01-19 02:22:09 +0000 |
commit | 2930d441592c16b83237ad015628cba5f41cc095 (patch) | |
tree | b4a1ed21015abc8ccb80e2ce2316a14828dd7b1a /lib/net_utils.c | |
parent | 9bd626e79df67b2ba3b0c91a4640ab7bca1af04d (diff) |
qla2xxx: Fix scsi_host leak on qlt_lport_register callback failure
This patch fixes a possible scsi_host reference leak in qlt_lport_register(),
when a non zero return from the passed (*callback) does not call drop the
local reference via scsi_host_put() before returning.
This currently does not effect existing tcm_qla2xxx code as the passed callback
will never fail, but fix this up regardless for future code.
Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions