Re: [PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak

2021-03-26 Thread Pavel Skripkin
Hi! Thanks for the review. On Tue, 2021-03-23 at 17:13 +0100, Mauro Carvalho Chehab wrote: > Em Sat, 27 Feb 2021 02:37:31 +0300 > Pavel Skripkin escreveu: > > > Syzbot reported memory leak in hdcs_probe_1x00()[1]. > > hdcs_probe_1x00() allocates memory for struct hdcs, but if > > hdcs_init() fai

Re: [PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak

2021-03-23 Thread Mauro Carvalho Chehab
Em Sat, 27 Feb 2021 02:37:31 +0300 Pavel Skripkin escreveu: > Syzbot reported memory leak in hdcs_probe_1x00()[1]. > hdcs_probe_1x00() allocates memory for struct hdcs, but if hdcs_init() fails > in gspca_dev_probe2() > this memory becomes leaked. > > int gspca_dev_probe2(struct usb_interface *

[PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak

2021-02-26 Thread Pavel Skripkin
Syzbot reported memory leak in hdcs_probe_1x00()[1]. hdcs_probe_1x00() allocates memory for struct hdcs, but if hdcs_init() fails in gspca_dev_probe2() this memory becomes leaked. int gspca_dev_probe2(struct usb_interface *intf, const struct usb_device_id *id, cons

[PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak

2021-02-26 Thread Pavel Skripkin
Syzbot reported memory leak in hdcs_probe_1x00()[1]. hdcs_probe_1x00() allocates memory for struct hdcs, but if hdcs_init() fails in gspca_dev_probe2() this memory becomes leaked. int gspca_dev_probe2(struct usb_interface *intf, const struct usb_device_id *id, cons