From: Alexey Khoroshilov Date: Mon, 29 Aug 2011 20:54:21 +0000 (+0400) Subject: staging: lirc_sasem: fix NULL pointer dereference in sasem_probe X-Git-Tag: v3.2-rc1~169^2^2~769 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06b3f44a9784c48c64dfedf5f012deb93049a3aa;p=pandora-kernel.git staging: lirc_sasem: fix NULL pointer dereference in sasem_probe If any memory allocation failed, goto alloc_status_switch leads to mutex_unlock(&context->ctx_lock) while context is NULL. The patch moves alloc_status_switch to handle error conditions in correct way. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed