Skip to content

Commit 543fc3f

Browse files
Paolo Abenidavem330
authored andcommitted
udpv6: add the required annotation to mib type
In commit 029a374 ("udp6: cleanup stats accounting in recvmsg()") I forgot to add the percpu annotation for the mib pointer. Add it, and make sparse happy. Fixes: 029a374 ("udp6: cleanup stats accounting in recvmsg()") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6ff7b06 commit 543fc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/udp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
288288
int peeked, peeking, off;
289289
int err;
290290
int is_udplite = IS_UDPLITE(sk);
291+
struct udp_mib __percpu *mib;
291292
bool checksum_valid = false;
292-
struct udp_mib *mib;
293293
int is_udp4;
294294

295295
if (flags & MSG_ERRQUEUE)

0 commit comments

Comments
 (0)