lkml.org 
[lkml]   [2015]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] i40e: Fix memory leak at failure path in i40e_dbg_command_write()
From
Date
On Sat, 2015-02-21 at 01:24 +0300, Alexey Khoroshilov wrote:
> The patch fixes a leak of 'cmd_buf' when copy_from_user() failed
> in i40e_dbg_command_write().
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
> ---
> drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

Thanks Alexey, I have added your patch to my queue.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-02-21 00:41    [from the cache]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site