]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/zoran/zoran_driver.c
V4L/DVB: drivers/media/video/zoran: Use available error codes
[net-next-2.6.git] / drivers / media / video / zoran / zoran_driver.c
index 6f89d0a096ead3c5f5831f999b280483ba0f7919..c155ddfb1332cd30e96a3f2a584cbb76b891586c 100644 (file)
@@ -3322,7 +3322,7 @@ zoran_mmap (struct file           *file,
 mmap_unlock_and_return:
        mutex_unlock(&zr->resource_lock);
 
-       return 0;
+       return res;
 }
 
 static const struct v4l2_ioctl_ops zoran_ioctl_ops = {