]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 31 Jul 2012 00:39:05 +0000 (20:39 -0400)
commit6699e19b1cb9a6bf2bcc14f3b704a5743b2babf8
tree70eba39a96cfb8cd6c9c90ceac9eeac6e9f3cfe4
parent89254f225e77a2e4c9d4d890332d59b8ed060e11
SUNRPC: return negative value in case rpcbind client creation error

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>
Cc: stable@vger.kernel.org [>= 3.0]
net/sunrpc/rpcb_clnt.c