[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190723225458.GA3376@lkp-kbuild04>
Date: Wed, 24 Jul 2019 06:54:58 +0800
From: kbuild test robot <lkp@...el.com>
To: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
Cc: kbuild-all@...org, Martin Weinelt <martin@...uxlounge.net>,
bridge@...ts.linux-foundation.org,
Roopa Prabhu <roopa@...ulusnetworks.com>,
netdev@...r.kernel.org
Subject: [PATCH] fix noderef.cocci warnings
From: kbuild test robot <lkp@...el.com>
net/bridge/br_multicast.c:999:8-14: ERROR: application of sizeof to pointer
sizeof when applied to a pointer typed expression gives the size of
the pointer
Generated by: scripts/coccinelle/misc/noderef.cocci
Fixes: 17c91348ed8b ("Use-after-free in br_multicast_rcv")
CC: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
Signed-off-by: kbuild test robot <lkp@...el.com>
---
url: https://github.com/0day-ci/linux/commits/Nikolay-Aleksandrov/net-bridge-mcast-fix-possible-uses-of-stale-pointers/20190702-083354
br_multicast.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -996,7 +996,7 @@ static int br_ip6_multicast_mld2_report(
return -EINVAL;
_nsrcs = skb_header_pointer(skb, nsrcs_offset,
- sizeof(_nsrcs), &__nsrcs);
+ sizeof(*_nsrcs), &__nsrcs);
if (!_nsrcs)
return -EINVAL;
Powered by blists - more mailing lists