From: Guennadi Liakhovetski Date: Thu, 3 Nov 2011 11:12:00 +0000 (-0300) Subject: [media] V4L: mt9m111: fix uninitialised mutex X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b806e30a3149816454a7ab71d50c244ebdb27d1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [media] V4L: mt9m111: fix uninitialised mutex Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/mt9m111.c b/drivers/media/video/mt9m111.c index f023cc092c2b..dda4685166d5 100644 --- a/drivers/media/video/mt9m111.c +++ b/drivers/media/video/mt9m111.c @@ -954,6 +954,7 @@ static int mt9m111_probe(struct i2c_client *client, mt9m111->rect.height = MT9M111_MAX_HEIGHT; mt9m111->fmt = &mt9m111_colour_fmts[0]; mt9m111->lastpage = -1; + mutex_init(&mt9m111->power_lock); ret = mt9m111_video_probe(client); if (ret) {