From: Nicholas Bellinger Date: Tue, 17 Dec 2013 09:51:22 +0000 (-0800) Subject: qla2xxx: Fix scsi_host leak on qlt_lport_register callback failure X-Git-Tag: v3.13-rc5~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd211997ddba3229e875f5990ea14f920934729;p=pandora-kernel.git 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 Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed