ext4: return -ENOMEM instead of success
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 10 Dec 2016 14:56:01 +0000 (09:56 -0500)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:46:49 +0000 (00:46 +0200)
commite74af998c0ce9e6c4e0da13660d322a9bab139da
treec0d347a4395e260851ab892728d49b2c78452c4b
parentb70876f0d70f5d8e571893a84e59a0ef92098fb1
ext4: return -ENOMEM instead of success

commit 578620f451f836389424833f1454eeeb2ffc9e9f upstream.

We should set the error code if kzalloc() fails.

Fixes: 67cf5b09a46f ("ext4: add the basic function for inline data support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/ext4/inline.c