diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 15:05:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-23 10:10:57 +0300 |
commit | ef32aca7c63c1b144f99cf8f087be07a56931eac (patch) | |
tree | cb2948ff58108746680a32614a02c19547ab4f28 /drivers/net/hamradio/bpqether.c | |
parent | 5cf3e5ff95876087ad241131955a244dd01726d5 (diff) | |
download | linux-ef32aca7c63c1b144f99cf8f087be07a56931eac.tar.xz |
media: vb2: be sure to unlock mutex on errors
commit c06ef2e9acef4cda1feee2ce055b8086e33d251a upstream.
As reported by smatch:
drivers/media/common/videobuf2/videobuf2-core.c: drivers/media/common/videobuf2/videobuf2-core.c:2159 vb2_mmap() warn: inconsistent returns 'mutex:&q->mmap_lock'.
Locked on: line 2148
Unlocked on: line 2100
line 2108
line 2113
line 2118
line 2156
line 2159
There is one error condition that doesn't unlock a mutex.
Fixes: cd26d1c4d1bc ("media: vb2: vb2_mmap: move lock up")
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/hamradio/bpqether.c')
0 files changed, 0 insertions, 0 deletions