diff options
author | Robert Elliott <elliott@hp.com> | 2015-01-24 01:42:06 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2015-02-02 20:57:37 +0300 |
commit | 60f923b940246422c7da6fec5b0636822115e5ce (patch) | |
tree | f39c775a1932c088fe6004c09cf16d0c92112391 /scripts/gdb/linux/utils.py | |
parent | adf1b3a31bdf4ca1e0dfb0afd8cb551053944db9 (diff) | |
download | linux-60f923b940246422c7da6fec5b0636822115e5ce.tar.xz |
hpsa: propagate return value from board ID lookup
If the board ID lookup function fails, return the return
code rather than return -ENODEV.
The only board ID failure reason right now is -ENODEV,
so this just provides more informative prints in kdump
and adapts to future changes.
Tested with error injection while booting with
reset_devices
on the kernel command line:
[ 62.804324] injecting error in inj_hpsa_lookup_board_id: 1 11
[ 62.804423] hpsa 0000:04:00.0: Board ID not found
(the pci probe layer does not print an additional
message if -ENODEV is the reason)
Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions