diff options
| author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-02-01 16:09:19 +0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-02-04 01:14:09 +0400 |
| commit | 4f463855c7d5a0ed0faa62497f3006336e74ee16 (patch) | |
| tree | b58743cede54440e9065dd80486250f68b18b347 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 33397a71217dda91b436726f046d78525fd08b22 (diff) | |
| download | linux-4f463855c7d5a0ed0faa62497f3006336e74ee16.tar.xz | |
stmmac: don't return zero on failure path in stmmac_pci_probe()
If stmmac_dvr_probe() fails in stmmac_pci_probe(), it breaks off initialization,
deallocates all resources, but returns zero.
The patch adds -ENODEV as return value in this case.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions
