diff options
author | Javed Hasan <jhasan@marvell.com> | 2020-08-25 02:39:40 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-08-31 21:42:51 -0400 |
commit | 5a5b80f98534416b3b253859897e2ba1dc241e70 (patch) | |
tree | 7e175148d5298ad523506bf423c41dafb0e1f925 /drivers/scsi/libfc | |
parent | ea403fde7552bd61bad6ea45e3feb99db77cb31e (diff) | |
download | linux-stable-5a5b80f98534416b3b253859897e2ba1dc241e70.tar.gz linux-stable-5a5b80f98534416b3b253859897e2ba1dc241e70.tar.bz2 linux-stable-5a5b80f98534416b3b253859897e2ba1dc241e70.zip |
scsi: libfc: Fix for double free()
Fix for '&fp->skb' double free.
Link:
https://lore.kernel.org/r/20200825093940.19612-1-jhasan@marvell.com
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r-- | drivers/scsi/libfc/fc_disc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index d8cbc9c0e766..e67abb184a8a 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c @@ -634,8 +634,6 @@ free_fp: fc_frame_free(fp); out: kref_put(&rdata->kref, fc_rport_destroy); - if (!IS_ERR(fp)) - fc_frame_free(fp); } /** |