aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Druzhinin <[email protected]>2020-01-14 14:43:19 +0000
committerMartin K. Petersen <[email protected]>2020-02-21 17:56:32 -0500
commitff6993bb79b9f99bdac0b5378169052931b65432 (patch)
tree12a7e43baf679037eccbcbb7f4e771a36defee18
parent807b9515b7d044cf77df31f1af9d842a76ecd5cb (diff)
scsi: libfc: free response frame from GPN_ID
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/[email protected] Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Igor Druzhinin <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/libfc/fc_disc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c
index 9c5f7c9178c6..2b865c6423e2 100644
--- a/drivers/scsi/libfc/fc_disc.c
+++ b/drivers/scsi/libfc/fc_disc.c
@@ -628,6 +628,8 @@ redisc:
}
out:
kref_put(&rdata->kref, fc_rport_destroy);
+ if (!IS_ERR(fp))
+ fc_frame_free(fp);
}
/**