Repository navigation
Commit 4d06bfb
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: c8cc881 ("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>1 parent 8d0d47e commit 4d06bfb
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2240 | 2240 | | |
2241 | 2241 | | |
2242 | 2242 | | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
2243 | 2247 | | |
2244 | 2248 | | |
2245 | 2249 | | |
| |||
2405 | 2409 | | |
2406 | 2410 | | |
2407 | 2411 | | |
2408 | | - | |
| 2412 | + | |
2409 | 2413 | | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
2410 | 2417 | | |
2411 | 2418 | | |
2412 | 2419 | | |
| |||
0 commit comments