lkml.org 
[lkml]   [2021]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] drivers: net: fix memory leak in peak_usb_create_dev
From
Date
Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Thu, 1 Apr 2021 16:27:52 +0300 you wrote:
> syzbot reported memory leak in peak_usb.
> The problem was in case of failure after calling
> ->dev_init()[2] in peak_usb_create_dev()[1]. The data
> allocated int dev_init() wasn't freed, so simple
> ->dev_free() call fix this problem.
>
> backtrace:
> [<0000000079d6542a>] kmalloc include/linux/slab.h:552 [inline]
> [<0000000079d6542a>] kzalloc include/linux/slab.h:682 [inline]
> [<0000000079d6542a>] pcan_usb_fd_init+0x156/0x210 drivers/net/can/usb/peak_usb/pcan_usb_fd.c:868 [2]
> [<00000000c09f9057>] peak_usb_create_dev drivers/net/can/usb/peak_usb/pcan_usb_core.c:851 [inline] [1]
> [<00000000c09f9057>] peak_usb_probe+0x389/0x490 drivers/net/can/usb/peak_usb/pcan_usb_core.c:949
>
> [...]

Here is the summary with links:
- drivers: net: fix memory leak in peak_usb_create_dev
https://git.kernel.org/netdev/net/c/a0b96b4a6274

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


\
 
 \ /
  Last update: 2021-04-02 01:01    [W:0.180 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site