VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Dan Carpenter <dan.carpenter@oracle.com> 2018-03-28 14:48:36 +0300 committer: David S. Miller <davem@davemloft.net> 2018-03-29 14:33:29 -0400 commit: 99fe29d3a25f813146816b322367b4c6a0fdec84 parent: 981f1f803516666d3e02f1d707a7f4b0ebf41967
Commit Summary:
test_bpf: Fix NULL vs IS_ERR() check in test_skb_segment()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/lib/test_bpf.c b/lib/test_bpf.c
index b2badf6b23cd..8e157806df7a 100644
--- a/lib/test_bpf.c
+++ b/lib/test_bpf.c
@@ -6649,7 +6649,7 @@ static __init int test_skb_segment(void)
 	}
 
 	segs = skb_segment(skb, features);
-	if (segs) {
+	if (!IS_ERR(segs)) {
 		kfree_skb_list(segs);
 		ret = 0;
 		pr_info("%s: success in skb_segment!", __func__);