]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: remove BUG_ON in xdr_shrink_bufhead
authorWeston Andros Adamson <dros@netapp.com>
Tue, 23 Oct 2012 14:43:42 +0000 (10:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:42 +0000 (14:43 -0500)
commit77185896171a7a217b125e39a4f78cbd2889e4fd
tree16f0c87a18a598289acfa5c59ab7e3b8c4308759
parent5ad1299e8c3c2ba74dc60aadf9b514a79c648bb7
SUNRPC: remove BUG_ON in xdr_shrink_bufhead

Replace bounds checking BUG_ON() with a WARN_ON_ONCE() and resetting
the requested len to the max.

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