Re: [PATCH 5.4 2/3] media: dvbdev: fix error logic at dvb_register_device()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 22, 2023 at 11:56:44AM +0300, ovidiu.panait@xxxxxxxxxxxxx wrote:
> From: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> 
> commit 1fec2ecc252301110e4149e6183fa70460d29674 upstream.
> 
> As reported by smatch:
> 
> 	drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:510 dvb_register_device() warn: '&dvbdev->list_head' not removed from list
> 	drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:530 dvb_register_device() warn: '&dvbdev->list_head' not removed from list
> 	drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:545 dvb_register_device() warn: '&dvbdev->list_head' not removed from list
> 
> The error logic inside dvb_register_device() doesn't remove
> devices from the dvb_adapter_list in case of errors.
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> Signed-off-by: Ovidiu Panait <ovidiu.panait@xxxxxxxxxxxxx>
> ---
>  drivers/media/dvb-core/dvbdev.c | 3 +++
>  1 file changed, 3 insertions(+)

Only 2 of 3 patches ever showed up, is there a 3/3?

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux