IB/qib: Fix port in pkey change event
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 2 May 2014 15:28:04 +0000 (11:28 -0400)
committerRoland Dreier <roland@purestorage.com>
Tue, 27 May 2014 20:20:26 +0000 (13:20 -0700)
commit911eccd284d13d78c92ec4f1f1092c03457d732a
treea3e30e926969b5f292fd5e1f8cea87cc706d74ae
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
IB/qib: Fix port in pkey change event

The code used a literal 1 in dispatching an IB_EVENT_PKEY_CHANGE.

As of the dual port qib QDR card, this is not necessarily correct.

Change to use the port as specified in the call.

Cc: <stable@vger.kernel.org>
Reported-by: Alex Estrin <alex.estrin@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_mad.c