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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:49:19 +0000 (18:49 -0700)
commitdd823fd8ae22b56e277a5e603098787417cbf32c
treeb8513241f5bd86e0d0ca2d6a65dd78bbdcb3c1a7
parente8b64337e32166c7cd578fcda3dea1f770b47de3
IB/qib: Fix port in pkey change event

commit 911eccd284d13d78c92ec4f1f1092c03457d732a upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/qib/qib_mad.c