IB/hfi1: Handle missing magic values in config file
authorJan Sokolowski <jan.sokolowski@intel.com>
Fri, 9 Jun 2017 23:00:26 +0000 (16:00 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 27 Jun 2017 20:58:13 +0000 (16:58 -0400)
commitbc5214ee29220251e5507882696ded5ca183b169
tree87d98ab772df304aa9c27478a1e607e2df0088ae
parentf683c80ca68e087b55c6f9ab6ca6beb88ebc6d69
IB/hfi1: Handle missing magic values in config file

Driver does not check whether proper configuration file exist in EPROM,
and treats empty partition as possible valid configuration, preventing
fallback to default firmware. Change EPROM read function to treat
missing magic number as read error.

Reviewed-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/eprom.c