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>
Sun, 4 Nov 2012 19:43:42 +0000 (14:43 -0500)
commit332e008a44d1ab6ca85b2214578f2f89af04a2fc
tree3a17b1839ba3c7e3fea88150ad5404e814bb2635
parentb8a13d039cbf7aec3b486fc0ae3996a5449afed2
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