]> 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)
commitcc169cd2cee277e0dd3435f6304b0401b8562cbf
treed6e066b31738a16257297fe97f357c9d8eca1ca8
parente173d5724997233a0e48b82a1eb6e3107d5d35f1
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: 1125d77317cc ("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