linux/drivers/media
Alexey Khoroshilov 5eeb301482 [media] cx231xx: fix usbdev leak on failure paths in cx231xx_usb_probe()
Commit b7085c0864 ("cx231xx: convert from pr_foo to dev_foo")
moves usb_get_dev(interface_to_usbdev(interface)) to the beginning
of cx231xx_usb_probe() to use udev->dev in dev_err(),
but it does not make sure usbdev is put on all failure paths.

Later dev_err(udev->dev) was replaced by dev_err(d).
So the patch moves usb_get_dev() below (before the first use)
and fixes another failure path.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-02-02 10:47:15 -02:00
..
common [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
dvb-core [media] cxusb: Geniatech T230 support 2014-11-25 09:15:54 -02:00
dvb-frontends [media] si2168: change firmware variable name and type 2015-01-29 18:46:05 -02:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c [media] ov2640: use the v4l2 size definitions 2015-02-02 10:40:56 -02:00
mmc
pci [media] bttv: Improve TEA575x support 2015-01-27 10:14:20 -02:00
platform [media] rcar_vin: move buffer management to .stop_streaming handler 2015-02-02 10:42:48 -02:00
radio [media] tea575x: split and export functions 2015-01-27 10:13:50 -02:00
rc [media] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i 2015-01-29 18:26:31 -02:00
tuners [media] si2157: change firmware variable name and type 2015-01-29 18:50:28 -02:00
usb [media] cx231xx: fix usbdev leak on failure paths in cx231xx_usb_probe() 2015-02-02 10:47:15 -02:00
v4l2-core [media] videobuf: make unused exported functions static 2015-01-27 10:01:33 -02:00
Kconfig [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00