android_kernel_oneplus_msm8998/drivers/media
Johan Hovold d1de6f689d media: stkwebcam: fix runtime PM after driver unbind
commit 30045f2174aab7fb4db7a9cf902d0aa6c75856a7 upstream.

Since commit c2b71462d294 ("USB: core: Fix bug caused by duplicate
interface PM usage counter") USB drivers must always balance their
runtime PM gets and puts, including when the driver has already been
unbound from the interface.

Leaving the interface with a positive PM usage counter would prevent a
later bound driver from suspending the device.

Note that runtime PM has never actually been enabled for this driver
since the support_autosuspend flag in its usb_driver struct is not set.

Fixes: c2b71462d294 ("USB: core: Fix bug caused by duplicate interface PM usage counter")
Cc: stable <stable@vger.kernel.org>
Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191001084908.2003-5-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-17 13:41:05 -07:00
..
common media: siano: get rid of __le32/__le16 cast warnings 2018-08-06 16:24:37 +02:00
dvb-core media: dvb_frontend: fix locking issues at dvb_frontend_get_event() 2018-07-03 11:21:33 +02:00
dvb-frontends tua6100: Avoid build warnings. 2019-08-04 09:34:44 +02:00
firewire media: firewire: Fix app_info parameter type in avc_ca{,_app}_info 2019-01-26 09:42:53 +01:00
i2c media: ov9650: add a sanity check 2019-10-05 12:27:49 +02:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate() 2019-10-05 12:27:48 +02:00
platform media: omap3isp: Set device on omap3isp subdevs 2019-10-05 12:27:51 +02:00
radio media: radio/si470x: kill urb on error 2019-10-05 12:27:48 +02:00
rc media: iguanair: add sanity checks 2019-10-05 12:27:46 +02:00
tuners media: r820t: fix r820t_write_reg for KASAN 2018-02-22 15:45:02 +01:00
usb media: stkwebcam: fix runtime PM after driver unbind 2019-10-17 13:41:05 -07:00
v4l2-core media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom() 2019-08-04 09:34:50 +02:00
Kconfig media updates for v4.2-rc1 2015-06-25 17:55:48 -07: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-entity.c: get rid of var length arrays 2015-10-01 18:10:05 -03:00