Daniele Orlandi wrote:
Sorry I've made a typo with the kernel version I am in fact using the 2.6.16 version, the latest patch version (653)On Sunday 23 April 2006 22:42, Aleš Golob wrote: has remedied that problem.
This problem was introduced with kernel 2.6.16(or .15, not sure) I've used a fix proposed by Rico Gloeckner in this mail: https://mailman.uli.it/pipermail/visdn-hackers/2006-April/000945.html I've attached a patch that works for me and should work with older kernels also but hasn't been tested with anything else than 2.6.16. |
--- isdn--devel--0.1--patch-653/modules/lapd/af_lapd.c 2006-05-11
17:28:00.000000000 +0200
+++ isdn--devel--0.1--patch-653-kernel-2.6.16/modules/lapd/af_lapd.c
2006-05-11 23:11:17.000000000 +0200
@@ -421,7 +421,15 @@
case SIOCGIFNAME:
case LAPD_DEV_IOC_ACTIVATE:
case LAPD_DEV_IOC_DEACTIVATE:
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
rc = dev_ioctl(cmd, argp);
+#else
+ if (sk->sk_prot->ioctl) {
+ rc = sk->sk_prot->ioctl(sk, cmd, arg);
+ } else {
+ rc = -ENOIOCTLCMD;
+ }
+#endif
break;
}
_______________________________________________ Visdn-hackers mailing list [email protected] https://mailman.uli.it/mailman/listinfo/visdn-hackers
