diff options
author | Dan Carpenter <[email protected]> | 2009-02-04 15:12:20 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-02-05 12:56:48 -0800 |
commit | 736d54533aedbcbde8cfb2f9ccd542595db4d78d (patch) | |
tree | 83fbdc15a5ad032e47c9d237617a67866303767b /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | fe86175bce50bc3d65ff09c287fed955c4da1eb3 (diff) |
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/).
[[email protected]: fix another such path - missed func_exit()]
Signed-off-by: Dan Carpenter <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions