Thread (2 messages) 2 messages, 2 authors, 2021-07-08

Re: [PATCH] net: rtnetlink: Fix rtnl_dereference return value is NULL

flat view

From: Eric Dumazet <hidden>
Date: 2021-07-08 08:08:38
Also in: lkml


On 7/8/21 9:37 AM, Yajun Deng wrote:
rtnl_dereference() may be return NULL in rtnl_unregister(),
so add this case handling.

Signed-off-by: Yajun Deng <redacted>
---
 net/core/rtnetlink.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
I do not see a use case for this.
None of rtnl_unregister() callers check the return value anyway.

Can you elaborate ?

If this was a bug fix, we would need a Fixes: tag.

If this is something you need for an upcoming work, you would need to tag
this for net-next tree.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help