[PATCH] ubifs: return err value than 0

2015-03-22 Thread Sanidhya Kashyap
Currently, ubifs_readpage only returns 0 even if ubifs_bulk_read() fails. Like the other file systems, the error value should be propagated further instead of 0. Another check that is missing is ENOMEM for kmalloc. Signed-off-by: Sanidhya Kashyap --- fs/ubifs/file.c | 13 + 1 file

[PATCH] ubifs: return err value than 0

2015-03-22 Thread Sanidhya Kashyap
Currently, ubifs_readpage only returns 0 even if ubifs_bulk_read() fails. Like the other file systems, the error value should be propagated further instead of 0. Another check that is missing is ENOMEM for kmalloc. Signed-off-by: Sanidhya Kashyap sanidhya.gat...@gmail.com --- fs/ubifs/file.c |