diff options
author | Sanidhya Kashyap <sanidhya.gatech@gmail.com> | 2015-04-16 12:48:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:08 -0400 |
commit | b796410630a0f090864d7595c6bffbc0136f0f8c (patch) | |
tree | 1888b4a7745f67896ccf0da3a95cff69c69d3336 /fs/adfs/dir_fplus.c | |
parent | 9d796e66230205cd3366f5660387bd9ecca9d336 (diff) | |
download | op-kernel-dev-b796410630a0f090864d7595c6bffbc0136f0f8c.zip op-kernel-dev-b796410630a0f090864d7595c6bffbc0136f0f8c.tar.gz |
adfs: return correct return values
Fix the wrong values returned by various functions such as EIO and ENOMEM.
Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@gmail.com>
Cc: Fabian Frederick <fabf@skynet.be>
Cc: Joe Perches <joe@perches.com>
Cc: Taesoo kim <taesoo@gatech.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/adfs/dir_fplus.c')
-rw-r--r-- | fs/adfs/dir_fplus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/adfs/dir_fplus.c b/fs/adfs/dir_fplus.c index f2ba88a..82d14cd 100644 --- a/fs/adfs/dir_fplus.c +++ b/fs/adfs/dir_fplus.c @@ -61,6 +61,7 @@ adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct kcalloc(size, sizeof(struct buffer_head *), GFP_KERNEL); if (!bh_fplus) { + ret = -ENOMEM; adfs_error(sb, "not enough memory for" " dir object %X (%d blocks)", id, size); goto out; |