Message ID | 20200825093940.19612-1-jhasan@marvell.com |
---|---|
State | New |
Headers | show |
Series | libfc: Fix for double freed. | expand |
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index d8cbc9c..e67abb1 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c @@ -634,8 +634,6 @@ static void fc_disc_gpn_id_resp(struct fc_seq *sp, struct fc_frame *fp, fc_frame_free(fp); out: kref_put(&rdata->kref, fc_rport_destroy); - if (!IS_ERR(fp)) - fc_frame_free(fp); } /**
-Fix added for '&fp->skb' double freed. Signed-off-by: Javed Hasan <jhasan@marvell.com>