Unverified Commit d0103b30 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10534 ipv6: prevent possible NULL deref in fib6_nh_init()

parents 5c76ed7d 436e09de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3485,7 +3485,7 @@ int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
	if (!dev)
		goto out;

	if (idev->cnf.disable_ipv6) {
	if (!idev || idev->cnf.disable_ipv6) {
		NL_SET_ERR_MSG(extack, "IPv6 is disabled on nexthop device");
		err = -EACCES;
		goto out;