Re: [PATCH net v2] net: nexthop: don't allow empty NHA_GROUP

2020-08-22 Thread David Miller
From: Nikolay Aleksandrov Date: Sat, 22 Aug 2020 15:06:36 +0300 > Currently the nexthop code will use an empty NHA_GROUP attribute, but it > requires at least 1 entry in order to function properly. Otherwise we > end up derefencing null or random pointers all over the place due to not > having an

Re: [PATCH net v2] net: nexthop: don't allow empty NHA_GROUP

2020-08-22 Thread David Ahern
On 8/22/20 6:06 AM, Nikolay Aleksandrov wrote: > Currently the nexthop code will use an empty NHA_GROUP attribute, but it > requires at least 1 entry in order to function properly. Otherwise we > end up derefencing null or random pointers all over the place due to not > having any nh_grp_entry memb

[PATCH net v2] net: nexthop: don't allow empty NHA_GROUP

2020-08-22 Thread Nikolay Aleksandrov
Currently the nexthop code will use an empty NHA_GROUP attribute, but it requires at least 1 entry in order to function properly. Otherwise we end up derefencing null or random pointers all over the place due to not having any nh_grp_entry members allocated, nexthop code relies on having at least t