]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: Use gid_valid to test for gid != INVALID_GID
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 2 Feb 2013 01:18:04 +0000 (17:18 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Feb 2013 14:15:20 +0000 (06:15 -0800)
commit038a3c48123374228e7f08886cd87cb6157b55c9
tree0178825a3990b0b316e7ecd2830cdcfbc3451a5e
parent0f285eb8d4956ba0e59119c65a79a9fdfb233cc5
sunrpc: Use gid_valid to test for gid != INVALID_GID

In auth unix there are a couple of places INVALID_GID is used a
sentinel to mark the end of uc_gids array.  Use gid_valid
as a type safe way to verify we have not hit the end of
valid data in the array.

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
net/sunrpc/auth_unix.c