From: Hans Verkuil Date: Fri, 20 Feb 2009 10:34:28 +0000 (-0300) Subject: V4L/DVB (10732): zoran: s_jpegcomp should return a proper result, not 0. X-Git-Tag: Ubuntu-5.0.0-8.9~28494^2~410 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=27f79525738ef626dfd4df5798bfb86ad5d6d98e;p=mirror_ubuntu-disco-kernel.git V4L/DVB (10732): zoran: s_jpegcomp should return a proper result, not 0. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index c6da45b41643..daad93728cf9 100644 --- a/drivers/media/video/zoran/zoran_driver.c +++ b/drivers/media/video/zoran/zoran_driver.c @@ -3119,7 +3119,7 @@ static int zoran_s_jpegcomp(struct file *file, void *__fh, sjpegc_unlock_and_return: mutex_unlock(&zr->resource_lock); - return 0; + return res; } static unsigned int