diff options
| author | Frank de Brabander <debrabander@gmail.com> | 2019-07-05 13:43:14 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-28 08:28:34 +0200 |
| commit | d7728216dee122a21fe8732c4f202301a07cdd60 (patch) | |
| tree | 2eb0c1bbed60fff51f57034f0910b211d7bd1311 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1cec7a0cf072a8b0039abaa88c73256f6d82bf4e (diff) | |
selftests: txring_overwrite: fix incorrect test of mmap() return value
[ Upstream commit cecaa76b2919aac2aa584ce476e9fcd5b084add5 ]
If mmap() fails it returns MAP_FAILED, which is defined as ((void *) -1).
The current if-statement incorrectly tests if *ring is NULL.
Fixes: 358be656406d ("selftests/net: add txring_overwrite")
Signed-off-by: Frank de Brabander <debrabander@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
