ext2: return error when fail to allocating memory in ioctl
authorChengguang Xu <cgxu519@mykernel.net>
Wed, 23 Oct 2019 13:56:43 +0000 (21:56 +0800)
committerJan Kara <jack@suse.cz>
Thu, 24 Oct 2019 07:24:40 +0000 (09:24 +0200)
commitacd1f04679803af84e7ab76f37df30d8598b07b9
tree56b9db6cac3d11df1dcc1d48e36f98dc33cc2cef
parentba1af2e47446ac353395b4c274408944284ceeaa
ext2: return error when fail to allocating memory in ioctl

Currently, we do not check memory allocation
result for ei->i_block_alloc_info in ioctl,
this patch checks it and returns error in
failure case.

Link: https://lore.kernel.org/r/20191023135643.28837-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/ioctl.c