]> 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)
commit787c4c90a3de76a2baf6771ed3d2a9704d43d04f
tree61c9df6b14a335d7feb9853a629b63645095c180
parent90bf3723ec5164be78075cdd1502524b2eeec29b
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: d480412de833 ('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