Commit 9fcc2e8a authored by Jayachandran C's avatar Jayachandran C Committed by Arnaldo Carvalho de Melo
Browse files

[IPV4]: Fix issue reported by Coverity in ipv4/fib_frontend.c

fib_del_ifaddr() dereferences ifa->ifa_dev, so the code already assumes that
ifa->ifa_dev is non-NULL, the check is unnecessary.

Signed-off-by: Jayachandran C. <c.jayachandran at>
Signed-off-by: default avatarArnaldo Carvalho de Melo <>
parent 360ac8e2
......@@ -591,7 +591,7 @@ static int fib_inetaddr_event(struct notifier_block *this, unsigned long event,
if (ifa->ifa_dev && ifa->ifa_dev->ifa_list == NULL) {
if (ifa->ifa_dev->ifa_list == NULL) {
/* Last address was deleted from this interface.
Disable IP.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment