lkml.org 
[lkml]   [2011]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] scsi/libfc: fix mm leak in handling incoming request for target discovery
From
When handling incoming request, if the operation code carried by the
received frame is not RSCN, the frame should be freed as in the RSCN
case, or there is memory leakage.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/drivers/scsi/libfc/fc_disc.c 2011-03-30 03:09:48.000000000 +0800
+++ b/drivers/scsi/libfc/fc_disc.c 2011-04-24 10:36:14.000000000 +0800
@@ -205,6 +205,7 @@ static void fc_disc_recv_req(struct fc_l
default:
FC_DISC_DBG(disc, "Received an unsupported request, "
"the opcode is (%x)\n", op);
+ fc_frame_free(fp);
break;
}
}

\
 
 \ /
  Last update: 2011-04-24 04:51    [W:0.029 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site