diff options
author | Quinn Tran <qutran@marvell.com> | 2019-11-05 07:06:52 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-17 19:56:44 +0100 |
commit | dea6ee7173039d489977c9ed92e3749154615db4 (patch) | |
tree | 61654a5a84f9b0e08a699eb63d1d57923137bc96 /net/x25/x25_subr.c | |
parent | af7878b07aa3b498fbebabaece408cfe9e7ae83a (diff) | |
download | linux-stable-dea6ee7173039d489977c9ed92e3749154615db4.tar.gz linux-stable-dea6ee7173039d489977c9ed92e3749154615db4.tar.bz2 linux-stable-dea6ee7173039d489977c9ed92e3749154615db4.zip |
scsi: qla2xxx: Fix SRB leak on switch command timeout
[ Upstream commit af2a0c51b1205327f55a7e82e530403ae1d42cbb ]
when GPSC/GPDB switch command fails, driver just returns without doing a
proper cleanup. This patch fixes this memory leak by calling sp->free() in
the error path.
Link: https://lore.kernel.org/r/20191105150657.8092-4-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/x25/x25_subr.c')
0 files changed, 0 insertions, 0 deletions