media: dib0700: fix locking in dib0700_i2c_xfer_new()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Apr 2017 12:52:07 +0000 (09:52 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 24 Jun 2017 18:38:37 +0000 (15:38 -0300)
commitd18a6ef59c53022b4af222412dc494cfd21c298e
treeb13bb89281ffddb5233b022fb8a798b58576f4be
parentdbe885a5dd86abc4bbcc72d17a6be4e92308c87f
media: dib0700: fix locking in dib0700_i2c_xfer_new()

This patch mostly adds unlocks to error paths.  But one additional small
change is that I made the first "break;" a "goto unlock;" which means
that now we return failure instead of success on that path.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/dib0700_core.c