Patch "libcxgb: fix error check for ip6_route_output()" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
libcxgb: fix error check for ip6_route_output()
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
libcxgb-fix-error-check-for-ip6_route_output.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Wed Dec 6 17:39:55 CET 2017
From: Varun Prakash <[email protected]>
Date: Tue, 3 Jan 2017 21:25:48 +0530
Subject: libcxgb: fix error check for ip6_route_output()
From: Varun Prakash <[email protected]>
[ Upstream commit a9a8cdb368d99bb655b5cdabea560446db0527cc ]
ip6_route_output() never returns NULL so
check dst->error instead of !dst.
--- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c +5 -7
@@ -133,17 +133,15 @@ cxgb_find_route6(struct cxgb4_lld_info *if (ipv6_addr_type (&fl6.daddr) &IPV6_ADDR_LINKLOCAL ) fl6.flowi6_oif = sin6_scope_id; dst =ip6_route_output (&init_net,NULL , &fl6); -if (!dst) - goto out; -if (!cxgb_our_interface (lldi, get_real_dev, -ip6_dst_idev (dst)->dev) && - !(ip6_dst_idev (dst)->dev->flags &IFF_LOOPBACK )) { +if (dst->error || + (!cxgb_our_interface (lldi, get_real_dev, +ip6_dst_idev (dst)->dev) && + !(ip6_dst_idev (dst)->dev->flags &IFF_LOOPBACK ))) {dst_release (dst); - dst =NULL ; +return NULL ; } } -out:return dst; }EXPORT_SYMBOL (cxgb_find_route6);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/libcxgb-fix-error-check-for-ip6_route_output.patch