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

Instead of calling BUG_ON(), do a WARN_ON_ONCE() and return -EINVAL.

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