ext4 crypto: fix some error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 2 Apr 2016 22:13:38 +0000 (18:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:11 +0000 (14:30 +0200)
commit22823e95193a0598b5681481eee9940e4128ad35
treec565b046aa93f941b7529732ce690d20f56f6dd4
parent0a76f023e6f2073936cc87ff839b2aaeccc4fb9a
ext4 crypto: fix some error handling

commit 4762cc3fbbd89e5fd316d6e4d3244a8984444f8d upstream.

We should be testing for -ENOMEM but the minus sign is missing.

Fixes: c9af28fdd449 ('ext4 crypto: don't let data integrity writebacks fail with ENOMEM')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/page-io.c