summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib-devprop.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-12-19 19:48:25 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-01-23 15:20:29 +0300
commit8d25e15d94a2d7b60c28d3a30e4e0e780cab2056 (patch)
treee3f4049902695766758f34e84d5af4fdc28b66cf /drivers/gpio/gpiolib-devprop.c
parente3ee691dbf24096ea51b3200946b11d68ce75361 (diff)
downloadlinux-8d25e15d94a2d7b60c28d3a30e4e0e780cab2056.tar.xz
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: f81a8158d4fb ("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>
Diffstat (limited to 'drivers/gpio/gpiolib-devprop.c')
0 files changed, 0 insertions, 0 deletions