]> rtime.felk.cvut.cz Git - linux-imx.git/commit
SUNRPC: remove BUG_ON from bc_malloc
authorWeston Andros Adamson <dros@netapp.com>
Tue, 23 Oct 2012 14:43:43 +0000 (10:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:42 +0000 (14:43 -0500)
commitb8a13d039cbf7aec3b486fc0ae3996a5449afed2
tree50a84f56c785e8d73322e90317d6c9d3f895a6fe
parent18e624ad0374f3b1092530f978301611f88e45b3
SUNRPC: remove BUG_ON from bc_malloc

Replace BUG_ON() with WARN_ON_ONCE() and NULL return - the caller will handle
this like a memory allocation failure.

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