]> git.karo-electronics.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 14:52:31 +0000 (07:52 -0700)
commit988eef525e96e39e6de1118c298cc43276533c6a
tree928f655a33cb38b0c60a997299faafd16ad70e3d
parentb0068c95cf455a9761becee7ae16ea9f5e12aec5
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