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

X25: remove bkl in routing ioctls

Routing doesn't use the socket data and is protected by x25_route_list_lock

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
0670b8ae 54aafbd4

-4
-4
net/x25/af_x25.c
··· 1412 1412 rc = -EPERM; 1413 1413 if (!capable(CAP_NET_ADMIN)) 1414 1414 break; 1415 - lock_kernel(); 1416 1415 rc = x25_route_ioctl(cmd, argp); 1417 - unlock_kernel(); 1418 1416 break; 1419 1417 case SIOCX25GSUBSCRIP: 1420 1418 lock_kernel(); ··· 1708 1710 rc = -EPERM; 1709 1711 if (!capable(CAP_NET_ADMIN)) 1710 1712 break; 1711 - lock_kernel(); 1712 1713 rc = x25_route_ioctl(cmd, argp); 1713 - unlock_kernel(); 1714 1714 break; 1715 1715 case SIOCX25GSUBSCRIP: 1716 1716 lock_kernel();