diff options
author | Frank de Brabander <debrabander@gmail.com> | 2019-07-05 14:43:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-09 01:39:38 +0300 |
commit | cecaa76b2919aac2aa584ce476e9fcd5b084add5 (patch) | |
tree | f354192e6a05bbb592e444771cfd159c823512a3 /net | |
parent | dd006fc434e107ef90f7de0db9907cbc1c521645 (diff) | |
download | linux-cecaa76b2919aac2aa584ce476e9fcd5b084add5.tar.xz |
selftests: txring_overwrite: fix incorrect test of mmap() return value
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions