Message ID | 1343333946-9893-1-git-send-email-elezegarcia@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/video/v4l2-dev.c b/drivers/media/video/v4l2-dev.c index d13c47f..337c370 100644 --- a/drivers/media/video/v4l2-dev.c +++ b/drivers/media/video/v4l2-dev.c @@ -496,7 +496,7 @@ static int v4l2_release(struct inode *inode, struct file *filp) if (vdev->fops->release) { if (test_bit(V4L2_FL_LOCK_ALL_FOPS, &vdev->flags)) mutex_lock(vdev->lock); - vdev->fops->release(filp); + ret = vdev->fops->release(filp); if (test_bit(V4L2_FL_LOCK_ALL_FOPS, &vdev->flags)) mutex_unlock(vdev->lock); }
Commit 65d9ff9c85d3c2e06d22aed78efee8404563eff6: "V4L/DVB (11390): 2-dev.c: return 0 for NULL open and release callbacks", introduced this bug. The bug this patch fixes is almost innocuous because nobody really cares about release() exit code. Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> --- drivers/media/video/v4l2-dev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)