OSDN Git Service

media: gspca: Check the return value of write_bridge for timeout
authorAditya Pakki <pakki001@umn.edu>
Fri, 28 Dec 2018 18:37:36 +0000 (13:37 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 16:25:56 +0000 (11:25 -0500)
commita21a0eb56b4e8fe4a330243af8030f890cde2283
tree1db7ecc4d47e347c1372f02a9e0d201c9141e5ad
parent5b711870bec4dc9a6d705d41e127e73944fa3650
media: gspca: Check the return value of write_bridge for timeout

In po1030_probe(), m5602_write_bridge() can timeout and return an error
value. The fix checks for the return value and propagates upstream
consistent with other usb drivers.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/gspca/m5602/m5602_po1030.c