summaryrefslogtreecommitdiff
path: root/arch/cris
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2011-08-29 20:17:56 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-06 18:46:20 (GMT)
commit6699291f89aa3e22490c9c93620350f92015b699 (patch)
treef5e4dc3e05af2b3d4449c1ebd1e88cadbba3f47a /arch/cris
parent939161571c01670ecc7e33a6b880ed812a17bbc6 (diff)
downloadlinux-fsl-qoriq-6699291f89aa3e22490c9c93620350f92015b699.tar.xz
staging: lirc: fix mismatch in mutex lock-unlock in imon_probe
If kzalloc failed for allocation of context, goto alloc_status_switch leads to unlock of unacquired driver_lock. The patch moves mutex_lock(&driver_lock) before allocation of context. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/cris')
0 files changed, 0 insertions, 0 deletions