]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1932574462b7ac11f0e5bd74982a5ea61acd65c3
treed6e066b31738a16257297fe97f357c9d8eca1ca8
parent986a21687d0d754a476a2c65b8de96e6cc6a9305
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: 1b0af506d7cd ("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