]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix double QSFP resource acquire on cache refresh
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 18:28:36 +0000 (11:28 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:28 +0000 (16:32 -0400)
commit6ecaab0400beb3e6a16296efd70fe57ed8c05a0c
tree4224c649e706e201f769907bd6a8dce6f31ddf4e
parentbe988e79ab87b43786f04ee434582d61aaf8ea4b
IB/hfi1: Fix double QSFP resource acquire on cache refresh

The function refresh_qsfp_cache() acquires the i2c chain resource,
but one caller already holds the resource.  Change the acquire so
all calls to refresh_qsfp_cache() are covered by the acquire and
remove the acquire within refresh_qsfp_cache().

Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/platform.c
drivers/staging/rdma/hfi1/qsfp.c