From: Dan Carpenter Date: Wed, 4 Feb 2009 23:12:20 +0000 (-0800) Subject: sx.c: fix missed unlock_kernel() on error path in sx_fw_ioctl() X-Git-Tag: v2.6.29-rc4~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=736d54533aedbcbde8cfb2f9ccd542595db4d78d;p=pandora-kernel.git sx.c: fix missed unlock_kernel() on error path in sx_fw_ioctl() If we return directly with -EPERM then lock_kernel() is still held. This was found with a code checker (http://repo.or.cz/w/smatch.git/). [akpm@linux-foundation.org: fix another such path - missed func_exit()] Signed-off-by: Dan Carpenter Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed