]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ims-pcu - fix uninitialized use of 'error' in ims_pcu_buffers_alloc()
authorChristian Engelmayer <cengelma@gmx.at>
Sun, 18 May 2014 23:00:40 +0000 (16:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 May 2014 05:39:56 +0000 (22:39 -0700)
commit4138ef244faf4a4310b4c82e89716208ac8db310
treefdcbf238217bebb6ba55efd5448c0b0012f03c4c
parent29fac5b20b19130fb019f22b1cf5fa427eada404
Input: ims-pcu - fix uninitialized use of 'error' in ims_pcu_buffers_alloc()

In case allocation via usb_alloc_coherent() fails in ims_pcu_buffers_alloc(),
the function jumps to the exit path without initializing local variable
'error' that is used as return value. Detected by Coverity - CID 1016531.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ims-pcu.c