Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82b9c5a4 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Gerrit - the friendly Code Review server
Browse files

packet: Fix false positive compilation error



This fixes the compilation error -

net/packet/af_packet.o: In function `check_copy_size':
include/linux/thread_info.h:136: undefined reference to `__bad_copy_to'

CRs-Fixed: 2395803
Change-Id: I33a7ec2413da0e4febc3f119c1f70ffa6c950158
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent aa9bff30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3899,7 +3899,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
			len = sizeof(int);
		if (len < sizeof(int))
			return -EINVAL;
		if (copy_from_user(&val, optval, len))
		if (copy_from_user(&val, optval, sizeof(val)))
			return -EFAULT;
		switch (val) {
		case TPACKET_V1: