]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61e80237132e32d2ba28e7fd206f6103b02cb721
treeed972023ca57033a550f2d2a36a0d5cfea51ddaf
parentd6a819a7bd59031c66248260f695dfb464344d80
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