Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.4.1 /drivers/isdn/isdn_common.c

Filename:/drivers/isdn/isdn_common.c
Lines Added:4
Lines Deleted:1
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.1-pre9  2.4.1-pre8  2.4.1-pre6 
(Following) 2.4.1-ac1  2.4.1-ac2  2.4.1-ac3  2.4.1-ac4  2.4.1-ac5  2.4.1-ac6 

Location
[  2.4.1
  [  drivers
    [  isdn
       o  isdn_common.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/isdn/isdn_common.c linux/drivers/isdn/isdn_common.c
--- v2.4.0/linux/drivers/isdn/isdn_common.c   Tue Jan  2 16:45:38 2001
+++ linux/drivers/isdn/isdn_common.c   Mon Jan  8 15:06:01 2001
@@ -1512,7 +1512,7 @@
                int i;
 
                if ((ret = verify_area(VERIFY_READ, (void *) arg,
-               (ISDN_MODEM_NUMREG + ISDN_MSNLEN)
+               (ISDN_MODEM_NUMREG + ISDN_MSNLEN + ISDN_LMSNLEN)
                      * ISDN_MAX_CHANNELS)))
                   return ret;
 
@@ -1521,6 +1521,9 @@
                        ISDN_MODEM_NUMREG))
                      return -EFAULT;
                   p += ISDN_MODEM_NUMREG;
+                  if (copy_from_user(dev->mdm.info[i].emu.plmsn, p, ISDN_LMSNLEN))
+                     return -EFAULT;
+                  p += ISDN_LMSNLEN;
                   if (copy_from_user(dev->mdm.info[i].emu.pmsn, p, ISDN_MSNLEN))
                      return -EFAULT;
                   p += ISDN_MSNLEN;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.