]> git.karo-electronics.de Git - linux-beck.git/commit
ext4: return -ENOMEM instead of success
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 10 Dec 2016 14:56:01 +0000 (09:56 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 10 Dec 2016 14:56:01 +0000 (09:56 -0500)
commit578620f451f836389424833f1454eeeb2ffc9e9f
treeef437c0575055652c7069b2874c655c569b1e572
parent7e6e1ef48fc02f3ac5d0edecbb0c6087cd758d58
ext4: return -ENOMEM instead of success

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>
Cc: stable@vger.kernel.org
fs/ext4/inline.c