Re: [PATCH] net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh

2021-04-08 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Fri, 9 Apr 2021 03:01:29 +0500 you wrote: > nlh is being checked for validtity two times when it is dereferenced in > this function. Check for validity again when updating the flags through > nlh pointer to make the dereferen

[PATCH] net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh

2021-04-08 Thread Muhammad Usama Anjum
nlh is being checked for validtity two times when it is dereferenced in this function. Check for validity again when updating the flags through nlh pointer to make the dereferencing safe. CC: Addresses-Coverity: ("NULL pointer dereference") Signed-off-by: Muhammad Usama Anjum --- net/ipv6/route