lkml.org 
[lkml]   [2019]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] net: kalmia: fix memory leaks
    From
    From: Wenwen Wang <wenwen@cs.uga.edu>
    Date: Wed, 14 Aug 2019 13:56:43 -0500

    > In kalmia_init_and_get_ethernet_addr(), 'usb_buf' is allocated through
    > kmalloc(). In the following execution, if the 'status' returned by
    > kalmia_send_init_packet() is not 0, 'usb_buf' is not deallocated, leading
    > to memory leaks. To fix this issue, add the 'out' label to free 'usb_buf'.
    >
    > Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>

    Applied.

    \
     
     \ /
      Last update: 2019-08-18 22:05    [W:3.559 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site