projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Remove incorrect unlock_kernel from allocation failure path in coda_open()
[powerpc.git]
/
fs
/
coda
/
file.c
diff --git
a/fs/coda/file.c
b/fs/coda/file.c
index
cc66c68
..
dbfbcfa
100644
(file)
--- a/
fs/coda/file.c
+++ b/
fs/coda/file.c
@@
-136,10
+136,8
@@
int coda_open(struct inode *coda_inode, struct file *coda_file)
coda_vfs_stat.open++;
cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL);
- if (!cfi) {
- unlock_kernel();
+ if (!cfi)
return -ENOMEM;
- }
lock_kernel();