Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8343dffa authored by Igor Druzhinin's avatar Igor Druzhinin Committed by Greg Kroah-Hartman
Browse files

scsi: libfc: free response frame from GPN_ID

[ Upstream commit ff6993bb79b9f99bdac0b5378169052931b65432 ]

fc_disc_gpn_id_resp() should be the last function using it so free it here
to avoid memory leak.

Link: https://lore.kernel.org/r/1579013000-14570-2-git-send-email-igor.druzhinin@citrix.com


Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarIgor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 81aebc37
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -640,6 +640,8 @@ static void fc_disc_gpn_id_resp(struct fc_seq *sp, struct fc_frame *fp,
	}
out:
	kref_put(&rdata->kref, fc_rport_destroy);
	if (!IS_ERR(fp))
		fc_frame_free(fp);
}

/**