[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190122.172557.2129916790098705175.davem@davemloft.net>
Date: Tue, 22 Jan 2019 17:25:57 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jakub.kicinski@...ronome.com
Cc: dsahern@...il.com, netdev@...r.kernel.org,
oss-drivers@...ronome.com
Subject: Re: [PATCH net v2] net/ipv6: don't return positive numbers when
nothing was dumped
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
Date: Tue, 22 Jan 2019 14:47:19 -0800
> in6_dump_addrs() returns a positive 1 if there was nothing to dump.
> This return value can not be passed as return from inet6_dump_addr()
> as is, because it will confuse rtnetlink, resulting in NLMSG_DONE
> never getting set:
>
> $ ip addr list dev lo
> EOF on netlink
> Dump terminated
>
> v2: flip condition to avoid a new goto (DaveA)
>
> Fixes: 7c1e8a3817c5 ("netlink: fixup regression in RTM_GETADDR")
> Reported-by: Brendan Galloway <brendan.galloway@...ronome.com>
> Signed-off-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
Applied, and since the RTM_GETADDR regression fix was backports I'll have
to -stable this as well.
Thanks!
Powered by blists - more mailing lists