]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mad: Remove improper use of BUG_ON
authorIra Weiny <ira.weiny@intel.com>
Thu, 25 Jun 2015 13:52:50 +0000 (09:52 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:08 +0000 (13:20 -0400)
commit207c64649afc4fd813f1ec96f40b1bd9e604049a
tree61c9df6b14a335d7feb9853a629b63645095c180
parent6ee1de28ed794dfc53966566f2988e744b29980b
IB/mad: Remove improper use of BUG_ON

We recently added BUG_ON's which were inappropriate for a condition which
should never happen. Change these to be WARN_ON_ONCE as a debugging aid.

Fixes: 42d6a6b746f3 ('IB/mad: Add support for additional MAD info to/from drivers')
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ehca/ehca_sqp.c
drivers/infiniband/hw/ipath/ipath_mad.c
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx5/mad.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
drivers/infiniband/hw/qib/qib_mad.c