]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix imbalance vha->vref_count
authorQuinn Tran <qutran@marvell.com>
Wed, 13 Jul 2022 05:20:41 +0000 (22:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:16 +0000 (14:24 +0200)
commit9b0e7d753f7856a41f1e3d7f3ec304353510345c
tree111292231b4b6ee00d2098970a1cc2508394cea8
parent7b59181e6d127638867589b97efe4d38d064203e
scsi: qla2xxx: Fix imbalance vha->vref_count

commit dfe58feb1f0e4e6bcbb83cf46b94b58034daefcf upstream.

vref_count took an extra decrement in the task management path.  Add an
extra ref count to compensate the imbalance.

Link: https://lore.kernel.org/r/20220713052045.10683-7-njavali@marvell.com
Cc: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_init.c