diff options
author | Javed Hasan <jhasan@marvell.com> | 2020-07-29 01:18:23 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-26 10:27:09 +0200 |
commit | 49aae8e6f90f33858d286d93795c29a7e49b3989 (patch) | |
tree | 2cf4ffc3e77423b3e4788efb21dc2c82a16b06d6 /block/blk-exec.c | |
parent | 6156e6259c3d707fbafbedb017f334f5e19bf214 (diff) | |
download | linux-stable-49aae8e6f90f33858d286d93795c29a7e49b3989.tar.gz linux-stable-49aae8e6f90f33858d286d93795c29a7e49b3989.tar.bz2 linux-stable-49aae8e6f90f33858d286d93795c29a7e49b3989.zip |
scsi: libfc: Free skb in fc_disc_gpn_id_resp() for valid cases
[ Upstream commit ec007ef40abb6a164d148b0dc19789a7a2de2cc8 ]
In fc_disc_gpn_id_resp(), skb is supposed to get freed in all cases except
for PTR_ERR. However, in some cases it didn't.
This fix is to call fc_frame_free(fp) before function returns.
Link: https://lore.kernel.org/r/20200729081824.30996-2-jhasan@marvell.com
Reviewed-by: Girish Basrur <gbasrur@marvell.com>
Reviewed-by: Santosh Vernekar <svernekar@marvell.com>
Reviewed-by: Saurav Kashyap <skashyap@marvell.com>
Reviewed-by: Shyam Sundar <ssundar@marvell.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions