]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: remove pointless test in unx_match()
authorNeilBrown <neilb@suse.com>
Mon, 7 Jan 2019 06:53:52 +0000 (17:53 +1100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 22:33:55 +0000 (17:33 -0500)
commitd8ce597a849032e0e340d461cd1c4be17b4650d6
treea1420581b2399bd45c4f72c28000f23ccb22288e
parentea8651518ff83c8b7567c34c134dc20492d4f291
SUNRPC: remove pointless test in unx_match()

As reported by Dan Carpenter, this test for acred->cred being set is
inconsistent with the dereference of the pointer a few lines earlier.

An 'auth_cred' *always* has ->cred set - every place that creates one
initializes this field, often as the first thing done.

So remove this test.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/auth_unix.c