IB/mad: Fix compare between big endian and cpu endian
authorIra Weiny <ira.weiny@intel.com>
Thu, 25 Jun 2015 16:04:49 +0000 (12:04 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:08 +0000 (13:20 -0400)
commitcd4cd565e049c6e734a12754d91d1142c25f6a64
treebcddcf9bbbc75c121d694023443b80f27c32cabe
parent4139032b4860c06ff3a7687041f06535fed901ed
IB/mad: Fix compare between big endian and cpu endian

The define OPA_LID_PERMISSIVE is big endian and was compared to the
cpu endian variable opa_drslid.

Problem caught by 0-day build infrastructure.

Fixes: 8e4349d13f33 (IB/mad: Add final OPA MAD processing)
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: John, Jubin <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/mad.c