From: Alexey Khoroshilov Date: Tue, 30 Aug 2011 21:57:10 +0000 (+0400) Subject: staging: sep: call to sep_ioctl() may leave driver in unusable state X-Git-Tag: v3.2-rc1~169^2^2~633 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f19885fadfdb0bf410b5e31c7dc2f2be7815e454;p=pandora-kernel.git staging: sep: call to sep_ioctl() may leave driver in unusable state If sep_ioctl() is called from a process that does not own current transaction, it unlocks unheld sep->ioctl_mutex and returns -EACCES leaving sep->sep_mutex acquired. The patch fixes the mutex lock-unlock mismatch. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed