projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce844a
)
hfsplus: incorrect return value
author
Chengyu Song
<
[email protected]
>
Thu, 16 Apr 2015 19:47:12 +0000
(12:47 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 17 Apr 2015 13:04:05 +0000
(09:04 -0400)
In case of memory allocation error, the return should be -ENOMEM, instead
of -ENOSPC.
Signed-off-by: Chengyu Song <
[email protected]
>
Reviewed-by: Sergei Antonov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/hfsplus/dir.c
patch
|
blob
|
history
diff --git
a/fs/hfsplus/dir.c
b/fs/hfsplus/dir.c
index f0235c1640af7ec29edb92541f66dfc739c9b0db..3074609befc312443a705a14b4d7486872dcef33 100644
(file)
--- a/
fs/hfsplus/dir.c
+++ b/
fs/hfsplus/dir.c
@@
-434,7
+434,7
@@
static int hfsplus_symlink(struct inode *dir, struct dentry *dentry,
{
struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb);
struct inode *inode;
- int res = -ENO
SPC
;
+ int res = -ENO
MEM
;
mutex_lock(&sbi->vh_mutex);
inode = hfsplus_new_inode(dir->i_sb, S_IFLNK | S_IRWXUGO);
@@
-476,7
+476,7
@@
static int hfsplus_mknod(struct inode *dir, struct dentry *dentry,
{
struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb);
struct inode *inode;
- int res = -ENO
SPC
;
+ int res = -ENO
MEM
;
mutex_lock(&sbi->vh_mutex);
inode = hfsplus_new_inode(dir->i_sb, mode);