diff options
author | Pan Bian <[email protected]> | 2016-12-04 13:53:53 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-12-05 14:54:18 -0500 |
commit | 0ff18d2d36efad65572990fa7febeb3ebe19da89 (patch) | |
tree | ce7a418232fddd07970d141154170161e2a1d67b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 7cf6156633b71743c09a8e56b1f0dedfc4ce6e66 (diff) |
net: ethernet: qlogic: set error code on failure
When calling dma_mapping_error(), the value of return variable rc is 0.
And when the call returns an unexpected value, rc is not set to a
negative errno. Thus, it will return 0 on the error path, and its
callers cannot detect the bug. This patch fixes the bug, assigning
"-ENOMEM" to err.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=189041
Signed-off-by: Pan Bian <[email protected]>
Acked-by: Yuval Mintz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions