[ALPS05211149] net:fix ubsan warning
[Detail] ubsan tool report the null pointer on the function: ip_rt_put ;but the function tell caller it may accepts a NULL parameter; [solution] bypass ubsan check MTK-Commit-Id: a27e154b8c4d0e6bd31f3275677ee45f10d03723 Change-Id: I9b20bb91d31545f57e3da061ff11fd092d3bbe1e Signed-off-by: zhuoliang zhang <zhuoliang.zhang@mediatek.com> CR-Id: ALPS05211149 Feature: [Module]IP Networking
This commit is contained in:
committed by
Zhuoliang Zhang
parent
6a611ece6b
commit
8507c4b773
@@ -231,7 +231,7 @@ void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *);
|
||||
void rt_add_uncached_list(struct rtable *rt);
|
||||
void rt_del_uncached_list(struct rtable *rt);
|
||||
|
||||
static inline void ip_rt_put(struct rtable *rt)
|
||||
static inline void __attribute__((no_sanitize("null"))) ip_rt_put(struct rtable *rt)
|
||||
{
|
||||
/* dst_release() accepts a NULL parameter.
|
||||
* We rely on dst being first structure in struct rtable
|
||||
|
||||
Reference in New Issue
Block a user