Skip to contentSkip to conversation

libfc: Fix for double freed.

PATCH Applied Javed Hasan 2 participants 2 messages Aug 25, 2020 – Sep 3, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libfc: Fix for double freed.

-Fix added for '&fp->skb' double freed.

drivers/scsi/libfc/fc_disc.c +0 -2
index d8cbc9c..e67abb1 100644
@@ -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);
 }
 
 /**
Signature · 1 line
1.8.3.1