diff options
author | Alexey Khoroshilov <[email protected]> | 2013-01-03 00:06:47 +0400 |
---|---|---|
committer | John W. Linville <[email protected]> | 2013-01-07 15:16:59 -0500 |
commit | 6960af6dce1f0b2d9d1b4ddf75952d54e633b923 (patch) | |
tree | 0ba3d4a06fdd882d1e327ad49c5e1860b601d6de /lib/memory-notifier-error-inject.c | |
parent | 40a23296854dded596fda33e0df4a7373229d75e (diff) |
p54pci: don't return zero on failure paths in p54p_probe()
If pci_set_dma_mask() or pci_set_consistent_dma_mask() fails in p54p_probe(),
it breaks off initialization, deallocates all resources, but returns zero.
Similar issue is if check for returned value of pci_resource_len() fails.
The patch implements proper error code propagation.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <[email protected]>
Acked-by: Christian Lamparter <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions