linux_dsm_epyc7002/drivers/media/usb/cx231xx
Mauro Carvalho Chehab b5603a943d [media] cx231xx: don't use dev it not allocated
changeset 5eeb301482 added a fixup at the error check
code. However, it introduced a new error:

	drivers/media/usb/cx231xx/cx231xx-cards.c:1586 cx231xx_usb_probe() error: we previously assumed 'dev' could be null (see line 1430)

This happens when dev = kmalloc() fails. So, instead of relying
on it to succeed, just change the parameter of clear_bit() from
'dev->devno' to 'nr'.

Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-02-02 10:56:55 -02:00
..
cx231xx-417.c [media] usb: Make use of media_bus_format enum 2014-11-14 17:54:28 -02:00
cx231xx-audio.c [media] cx231xx: Remove a bogus check for NULL 2014-11-03 18:56:48 -02:00
cx231xx-avcore.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-cards.c [media] cx231xx: don't use dev it not allocated 2015-02-02 10:56:55 -02:00
cx231xx-conf-reg.h
cx231xx-core.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-dif.h
cx231xx-dvb.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-i2c.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-input.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.h [media] cx231xx: return an error if it can't read PCB config 2014-07-27 16:57:43 -03:00
cx231xx-reg.h
cx231xx-vbi.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-vbi.h
cx231xx-video.c [media] media: drivers shouldn't touch debug field in video_device 2014-12-23 10:29:04 -02:00
cx231xx.h [media] cx231xx: remove btcx_riscmem reference 2014-12-23 09:36:18 -02:00
Kconfig [media] cx231xx: register i2c mux adapters for bus 1 2014-10-30 17:38:43 -02:00
Makefile