lkml.org 
[lkml]   [2009]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/5] SCSI: aacraid, fix memory leak
    Date
    Stanse found a memory leak on one fail path in aac_send_raw_srb. Add kfree
    there.

    Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
    Cc: James E.J. Bottomley <James.Bottomley@suse.de>
    ---
    drivers/scsi/aacraid/commctrl.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c
    index 0391d75..5c9a8be 100644
    --- a/drivers/scsi/aacraid/commctrl.c
    +++ b/drivers/scsi/aacraid/commctrl.c
    @@ -649,6 +649,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg)
    AAC_OPT_NEW_COMM) ?
    (dev->scsi_host_ptr->max_sectors << 9) :
    65536) {
    + kfree (usg);
    rcode = -EINVAL;
    goto cleanup;
    }
    --
    1.6.4.2


    \
     
     \ /
      Last update: 2009-09-23 16:19    [W:0.020 / U:0.020 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site