ext2: change return code to -ENOMEM when failing memory allocation
authorChengguang Xu <cgxu519@icloud.com>
Mon, 26 Feb 2018 09:45:12 +0000 (17:45 +0800)
committerJan Kara <jack@suse.cz>
Fri, 2 Mar 2018 13:23:11 +0000 (14:23 +0100)
commitd09099051057bbae5e1a887167ad6189ac8bfca4
tree82779d25811aed48918168272ccf3c5554c88523
parentb72e632c6c7e29343651b0e26539b2e01444dfe6
ext2: change return code to -ENOMEM when failing memory allocation

Change return code to -ENOMEM from -EINVAL when failing memory
allocation in fill_super(), meanwhile delete redundant initial
assignment of variable err.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c