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