]> 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)
commit7b6c6c8f349b3ea39a7b4c6ec6e07f5a5ec12075
tree4224c649e706e201f769907bd6a8dce6f31ddf4e
parentcb112b256819b1f3834ac0de25e6b95cb21109d5
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