Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

X25: remove bkl in timestamp ioctls

Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

andrew hendry and committed by
David S. Miller
1ecd66bf 70be998c

-8
-8
net/x25/af_x25.c
··· 1387 1387 1388 1388 case SIOCGSTAMP: 1389 1389 rc = -EINVAL; 1390 - lock_kernel(); 1391 1390 if (sk) 1392 1391 rc = sock_get_timestamp(sk, 1393 1392 (struct timeval __user *)argp); 1394 - unlock_kernel(); 1395 1393 break; 1396 1394 case SIOCGSTAMPNS: 1397 1395 rc = -EINVAL; 1398 - lock_kernel(); 1399 1396 if (sk) 1400 1397 rc = sock_get_timestampns(sk, 1401 1398 (struct timespec __user *)argp); 1402 - unlock_kernel(); 1403 1399 break; 1404 1400 case SIOCGIFADDR: 1405 1401 case SIOCSIFADDR: ··· 1685 1689 break; 1686 1690 case SIOCGSTAMP: 1687 1691 rc = -EINVAL; 1688 - lock_kernel(); 1689 1692 if (sk) 1690 1693 rc = compat_sock_get_timestamp(sk, 1691 1694 (struct timeval __user*)argp); 1692 - unlock_kernel(); 1693 1695 break; 1694 1696 case SIOCGSTAMPNS: 1695 1697 rc = -EINVAL; 1696 - lock_kernel(); 1697 1698 if (sk) 1698 1699 rc = compat_sock_get_timestampns(sk, 1699 1700 (struct timespec __user*)argp); 1700 - unlock_kernel(); 1701 1701 break; 1702 1702 case SIOCGIFADDR: 1703 1703 case SIOCSIFADDR: