]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SUNRPC: return negative value in case rpcbind client creation error
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 20 Jul 2012 11:57:48 +0000 (15:57 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2012 19:04:09 +0000 (12:04 -0700)
commitd90c97ba987ab9f1c0a1e11697269814386243b9
treed74dccf3e9004dfc4564d2cfb32b247f5ce14a39
parent5bf75ed61c9715435661971acd4e181c26f2af20
SUNRPC: return negative value in case rpcbind client creation error

commit caea33da898e4e14f0ba58173e3b7689981d2c0b upstream.

Without this patch kernel will panic on LockD start, because lockd_up() checks
lockd_up_net() result for negative value.
From my pow it's better to return negative value from rpcbind routines instead
of replacing all such checks like in lockd_up().

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/rpcb_clnt.c