https://github.com/torvalds/linux
Revision 736d54533aedbcbde8cfb2f9ccd542595db4d78d authored by Dan Carpenter on 04 February 2009, 23:12:20 UTC, committed by Linus Torvalds on 05 February 2009, 20:56:48 UTC
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 <error27@gmail.com>
Cc: <R.E.Wolff@BitWizard.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fe86175
History
Tip revision: 736d54533aedbcbde8cfb2f9ccd542595db4d78d authored by Dan Carpenter on 04 February 2009, 23:12:20 UTC
sx.c: fix missed unlock_kernel() on error path in sx_fw_ioctl()
Tip revision: 736d545
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.3 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 106.5 KB
Makefile -rw-r--r-- 53.2 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top