linux_dsm_epyc7002/drivers/media/common/videobuf2
Mauro Carvalho Chehab c06ef2e9ac media: vb2: be sure to unlock mutex on errors
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: cd26d1c4d1 ("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>
2018-11-23 07:29:54 -05:00
..
Kconfig media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
Makefile media: vb2: Makefile: place vb2-trace together with vb2-core 2018-02-26 11:39:04 -05:00
vb2-trace.c media: videobuf2: fix build issues with vb2-trace 2018-02-23 05:13:53 -05:00
videobuf2-core.c media: vb2: be sure to unlock mutex on errors 2018-11-23 07:29:54 -05:00
videobuf2-dma-contig.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00
videobuf2-dma-sg.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00
videobuf2-dvb.c
videobuf2-memops.c
videobuf2-v4l2.c media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused() 2018-11-23 06:42:15 -05:00
videobuf2-vmalloc.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00