[PATCH] ubifs: propagate error value than 0

2015-03-23 Thread Sanidhya Kashyap
Currently, ubifs_readpage only returns 0 even if ubifs_bulk_read() fails. Therefore propagating error to the above functions which have called ubifs_readpage. Another check that is missing is ENOMEM for kmalloc in ubifs_bulk_read. Signed-off-by: Sanidhya Kashyap --- fs/ubifs/file.c | 11

[PATCH] ubifs: propagate error value than 0

2015-03-23 Thread Sanidhya Kashyap
Currently, ubifs_readpage only returns 0 even if ubifs_bulk_read() fails. Therefore propagating error to the above functions which have called ubifs_readpage. Another check that is missing is ENOMEM for kmalloc in ubifs_bulk_read. Signed-off-by: Sanidhya Kashyap sanidhya.gat...@gmail.com ---