public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libfc: fix mem leak in fc_tm_done()
@ 2010-10-25 12:37 Hillf Danton
  2010-10-25 12:42 ` [PATCH 2/2] " Hillf Danton
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hillf Danton @ 2010-10-25 12:37 UTC (permalink / raw)
  To: devel-s9riP+hp16TNLxjTenLetw; +Cc: linux-scsi-u79uwXL29TY76Z2rM5mHXA

There seems frame should get freed against memory leakage.

Signed-off-by: Hillf Danton <dhillf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---

--- a/drivers/scsi/libfc/fc_fcp.c	2010-09-13 07:07:38.000000000 +0800
+++ b/drivers/scsi/libfc/fc_fcp.c	2010-10-25 20:31:04.000000000 +0800
@@ -1294,6 +1294,7 @@ static void fc_tm_done(struct fc_seq *se
 	 */
 	if (!fsp->seq_ptr || !fsp->wait_for_comp) {
 		spin_unlock_bh(&fsp->scsi_pkt_lock);
+		fc_frame_free(fp);
 		return;
 	}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-28 14:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-25 12:37 [PATCH 1/2] libfc: fix mem leak in fc_tm_done() Hillf Danton
2010-10-25 12:42 ` [PATCH 2/2] " Hillf Danton
2010-10-28  1:18 ` [Open-FCoE] [PATCH 1/2] " Robert Love
2010-10-28 13:47   ` Hillf Danton
     [not found] ` <AANLkTinAOy9+WPuKGro09Cu=xiLF+QMQ+JkioHNZao9n-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-28  1:24   ` Robert Love
2010-10-28  1:55     ` Mike Christie
2010-10-28 13:43       ` [Open-FCoE] " Hillf Danton
2010-10-28 14:56         ` Zou, Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox