staging: lustre: fix handling lustre_posix_acl_xattr_filter result
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:37 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:57:00 +0000 (03:57 +0200)
commit92bb833e39feea79827946e1ecbaa7e6dee73fbf
tree8d7eced0dc5cc351d1a14b642466aa09eb1b88f6
parent4346f9a01fe0846d1399292b53b24f6fde5bd2d9
staging: lustre: fix handling lustre_posix_acl_xattr_filter result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/xattr.c