Re: [PATCH] drivers: net: fix memory leak in peak_usb_create_dev

2021-04-01 Thread patchwork-bot+netdevbpf
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'

[PATCH] drivers: net: fix memory leak in peak_usb_create_dev

2021-04-01 Thread Pavel Skripkin
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: [<79d6542a>] kmalloc include/linux/slab.h:552