diff mbox series

libfc: Fix for double freed.

Message ID 20200825093940.19612-1-jhasan@marvell.com
State New
Headers show
Series libfc: Fix for double freed. | expand

Commit Message

Javed Hasan Aug. 25, 2020, 9:39 a.m. UTC
-Fix added for '&fp->skb' double freed.

Signed-off-by: Javed Hasan <jhasan@marvell.com>
diff mbox series

Patch

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);
 }
 
 /**