branch Attitude Adjustment packages
[12.09/packages.git] / libs / zaptel-1.4.x / patches / 371-3.x.patch
1 --- a/kernel/zaptel-base.c
2 +++ b/kernel/zaptel-base.c
3 @@ -5182,14 +5182,20 @@ static int zt_ioctl(struct inode *inode,
4  }
5  
6  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
7 +#ifdef CONFIG_BKL
8  #include <linux/smp_lock.h>
9 +#endif
10  static long zt_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long data)
11  {
12         int ret;
13  
14 +#ifdef CONFIG_BKL
15         lock_kernel();
16 +#endif
17         ret = zt_ioctl(file->f_path.dentry->d_inode, file, cmd, data);
18 +#ifdef CONFIG_BKL
19         unlock_kernel();
20 +#endif
21  
22         return ret;
23  }