RDMA/mad: Convert BUG_ONs to error flows
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 May 2018 11:56:19 +0000 (14:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 1 Jun 2018 15:16:24 +0000 (11:16 -0400)
commit2468b82d69e3a53d024f28d79ba0fdb8bf43dfbf
tree1c76bffaf8250a032f2257b9cc0bf810fd782427
parentdee92c4bf53b2701d382ce9e32c57d194a393bfe
RDMA/mad: Convert BUG_ONs to error flows

Let's perform checks in-place instead of BUG_ONs.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/mad.c