commit | 99fe29d3a25f813146816b322367b4c6a0fdec84 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Mar 28 14:48:36 2018 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Mar 29 14:33:29 2018 -0400 |
tree | 8197459068121adbb98ea603bb421d922f1f4927 | |
parent | 981f1f803516666d3e02f1d707a7f4b0ebf41967 [diff] |
test_bpf: Fix NULL vs IS_ERR() check in test_skb_segment() The skb_segment() function returns error pointers on error. It never returns NULL. Fixes: 76db8087c4c9 ("net: bpf: add a test for skb_segment in test_bpf module") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Yonghong Song <yhs@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>