media: gspca: mt9m111: Check write_bridge for timeout
authorAditya Pakki <pakki001@umn.edu>
Fri, 28 Dec 2018 18:51:10 +0000 (13:51 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 16:27:10 +0000 (11:27 -0500)
commit656025850074f5c1ba2e05be37bda57ba2b8d491
tree7c99dd67402f32929224478900cca4e035183d29
parenta21a0eb56b4e8fe4a330243af8030f890cde2283
media: gspca: mt9m111: Check write_bridge for timeout

In mt9m111_probe, m5602_write_bridge can timeout and return a negative
error value. The fix checks for this error and passes it upstream.

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