]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 1 Nov 2012 16:02:17 +0000 (12:02 -0400)
commitcf4b89fd4485a193d0f0abdedad9a5c7c95eed02
tree74cfffb48789fa6e3475f469ee1db89a9737f5ed
parent73ebe8a3a4ec7debb8013f6c7905839928154741
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