android_kernel_motorola_sm6375/drivers/media
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Colin Ian King 8d25e15d94 media: lirc: don't kfree the uninitialized pointer txbuf
The current error exit path if ir_raw_encode_scancode fails is via the
label out_kfree which kfree's an uninitialized pointer txbuf. Fix this
by exiting via a new exit path that does not kfree txbuf.  Also exit
via this new exit path for a failed allocation of txbuf to avoid a
redundant kfree on a NULL pointer (to save a bunch of CPU cycles).

Detected by: CoverityScan, CID#1463070 ("Uninitialized pointer read")

Fixes: f81a8158d4 ("media: lirc: release lock before sleep")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-01-23 07:20:29 -05:00
..
cec media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
common media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
dvb-core media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
dvb-frontends media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
firewire media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
i2c media: ov5640: add support of RGB565 and YUYV formats 2018-01-05 12:54:14 -05:00
mmc media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pci media: intel-ipu3: cio2: fix for wrong vb2buf state warnings 2018-01-05 12:44:10 -05:00
platform media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
radio media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
rc media: lirc: don't kfree the uninitialized pointer txbuf 2018-01-23 07:20:29 -05:00
spi
tuners media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
usb media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
v4l2-core media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
Kconfig media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
Makefile
media-device.c
media-devnode.c
media-entity.c