mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
b1513c3531
84 changed files with 617 additions and 249 deletions
|
|
@ -3880,6 +3880,8 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
|
|||
case PACKET_HDRLEN:
|
||||
if (len > sizeof(int))
|
||||
len = sizeof(int);
|
||||
if (len < sizeof(int))
|
||||
return -EINVAL;
|
||||
if (copy_from_user(&val, optval, len))
|
||||
return -EFAULT;
|
||||
switch (val) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue