This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: smiapp: unlock on error in smiapp_start_streaming()
Author:  Dan Carpenter <dan.carpen...@oracle.com>
Date:    Tue Oct 29 15:24:01 2019 -0300

We added two new error paths to smiapp_start_streaming(), but we can't
return directly without dropping the "sensor->mutex" lock.

Fixes: f8c4352c1bef ("media: smiapp: Move binning configuration to streaming 
start")
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@kernel.org>

 drivers/media/i2c/smiapp/smiapp-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/i2c/smiapp/smiapp-core.c 
b/drivers/media/i2c/smiapp/smiapp-core.c
index 77dfce7c3be9..84f9771b5fed 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -1362,13 +1362,13 @@ static int smiapp_start_streaming(struct smiapp_sensor 
*sensor)
                rval = smiapp_write(
                        sensor, SMIAPP_REG_U8_BINNING_TYPE, binning_type);
                if (rval < 0)
-                       return rval;
+                       goto out;
 
                binning_mode = 1;
        }
        rval = smiapp_write(sensor, SMIAPP_REG_U8_BINNING_MODE, binning_mode);
        if (rval < 0)
-               return rval;
+               goto out;
 
        /* Set up PLL */
        rval = smiapp_pll_configure(sensor);

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to