]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: remove BUG_ON from encode_rpcb_string
authorWeston Andros Adamson <dros@netapp.com>
Tue, 23 Oct 2012 14:43:44 +0000 (10:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Nov 2012 16:02:18 +0000 (12:02 -0400)
commit3875fb903078a14ed55b9c0750a30b1e1cd8b07c
treed52655b78fcfecb74c1d518453b90d2b7a0e4400
parent5746f87b16b48ad72988ec9459b848f8d56e05f0
SUNRPC: remove BUG_ON from encode_rpcb_string

Replace BUG_ON() with WARN_ON_ONCE() and truncate the encoded string if
len > max.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c