IB/hfi1: Check return values from PCI config API calls
authorBartlomiej Dudek <bartlomiej.dudek@intel.com>
Fri, 30 Jun 2017 20:14:40 +0000 (13:14 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 31 Jul 2017 19:01:36 +0000 (15:01 -0400)
commitc53df62c7a9a82c7375308af270f90a08e94f6b6
treea9c8a6faecab43c132706e9e891647e923ce8996
parent967de35826070026e51e66dcf020059ef6ce26b5
IB/hfi1: Check return values from PCI config API calls

Ensure that return values from kernel PCI config access
API calls in HFI driver are checked and react properly if
they are not expected (i.e. not successful).

Reviewed-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Bartlomiej Dudek <bartlomiej.dudek@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/pcie.c