Commit f9072e26 authored by Xu Jia's avatar Xu Jia Committed by Yang Yingliang
Browse files

ipv4: fix uninitialized warnings in fnhe_remove_oldest()



hulk inclusion
category: bugfix
bugzilla: 177871
CVE: NA

-------------------------------------------------

The following warning is falsely reported since commit
e2eea86c (ipv4: make exception cache less predictible):

  error: ‘oldest_p’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    *oldest_p = oldest->fnhe_next;
    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
  net/ipv4/route.c:602:44: note: ‘oldest_p’ was declared here
    struct fib_nh_exception __rcu **fnhe_p, **oldest_p;

Fix and avoid the alarm.

Signed-off-by: default avatarXu Jia <xujia39@huawei.com>
Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Reviewed-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent d0562f6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment