[ldv-project] [PATCH] i40e: Fix memory leak at failure path in i40e_dbg_command_write()

Jeff Kirsher jeffrey.t.kirsher at intel.com
Sat Feb 21 02:28:39 MSK 2015


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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://linuxtesting.org/pipermail/ldv-project/attachments/20150220/4213a2a5/attachment.pgp>


More information about the ldv-project mailing list