diff options
author | Paul Mackerras <paulus@samba.org> | 2008-03-24 22:31:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-03-24 22:31:46 -0400 |
commit | 16fddf5457d2a7eb5e96ceb016a8f722eca97af6 (patch) | |
tree | ae3083a50c55f1e1a2c83f475d0e8bb2da8d7196 /net/socket.c | |
parent | 5492a7e4cba8e38419d489f0865de0a67c737e8a (diff) | |
parent | cc7feea39bed2951cc29af3ad642f39a99dfe8d3 (diff) |
Merge branch 'linux-2.6' into merge
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/socket.c b/net/socket.c index b6d35cd72a50..9d3fbfbc8535 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -909,11 +909,10 @@ static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
909 | if (!dlci_ioctl_hook) | 909 | if (!dlci_ioctl_hook) |
910 | request_module("dlci"); | 910 | request_module("dlci"); |
911 | 911 | ||
912 | if (dlci_ioctl_hook) { | 912 | mutex_lock(&dlci_ioctl_mutex); |
913 | mutex_lock(&dlci_ioctl_mutex); | 913 | if (dlci_ioctl_hook) |
914 | err = dlci_ioctl_hook(cmd, argp); | 914 | err = dlci_ioctl_hook(cmd, argp); |
915 | mutex_unlock(&dlci_ioctl_mutex); | 915 | mutex_unlock(&dlci_ioctl_mutex); |
916 | } | ||
917 | break; | 916 | break; |
918 | default: | 917 | default: |
919 | err = sock->ops->ioctl(sock, cmd, arg); | 918 | err = sock->ops->ioctl(sock, cmd, arg); |