ext4: Add error handling for io_end_vec struct allocation
authorRitesh Harjani <riteshh@linux.ibm.com>
Wed, 6 Nov 2019 09:38:09 +0000 (15:08 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Nov 2019 00:52:03 +0000 (19:52 -0500)
commit4d06bfb97ecb0df4f5b057a73db002e28c22c35c
treed6e066b31738a16257297fe97f357c9d8eca1ca8
parent8d0d47ea1640b23678306c007ccc813b5b930af4
ext4: Add error handling for io_end_vec struct allocation

This patch adds the error handling in case of any memory allocation
failure for io_end_vec. This was missing in original
patch series which enables dioread_nolock for blocksize < pagesize.

Fixes: c8cc88163f40 ("ext4: Add support for blocksize < pagesize in dioread_nolock")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/20191106093809.10673-1-riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c