ext4: check allocation failure when duplicating "data" in ext4_remount()
authorChengguang Xu <cgxu519@gmx.com>
Sun, 29 Jul 2018 19:51:54 +0000 (15:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 19:51:54 +0000 (15:51 -0400)
commit21ac738ede0b49004b53b4a44fe3df7bb4a78280
treeed972023ca57033a550f2d2a36a0d5cfea51ddaf
parent7f144fd046d967ff2fbba59203b42b888ad5aae7
ext4: check allocation failure when duplicating "data" in ext4_remount()

There is no check for allocation failure when duplicating
"data" in ext4_remount(). Check for failure and return
error -ENOMEM in this case.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/super.c