]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fbd6a9b21415b671d0d52ad17296eb375204a6a
tree8d7eced0dc5cc351d1a14b642466aa09eb1b88f6
parentce83e5b679424aebbb2294ca93a57578653352e2
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