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

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

Advertisement

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

Filename:/drivers/isdn/isdn_v110.c
Lines Added:2
Lines Deleted:2
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_v110.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/isdn/isdn_v110.c linux/drivers/isdn/isdn_v110.c
--- v2.4.0/linux/drivers/isdn/isdn_v110.c   Sun Aug  6 12:43:42 2000
+++ linux/drivers/isdn/isdn_v110.c   Mon Jan 15 15:31:18 2001
@@ -102,7 +102,7 @@
    int i;
    isdn_v110_stream *v;
 
-   if ((v = kmalloc(sizeof(isdn_v110_stream), GFP_KERNEL)) == NULL)
+   if ((v = kmalloc(sizeof(isdn_v110_stream), GFP_ATOMIC)) == NULL)
       return NULL;
    memset(v, 0, sizeof(isdn_v110_stream));
    v->key = key;
@@ -134,7 +134,7 @@
    v->b = 0;
    v->skbres = hdrlen;
    v->maxsize = maxsize - hdrlen;
-   if ((v->encodebuf = kmalloc(maxsize, GFP_KERNEL)) == NULL) {
+   if ((v->encodebuf = kmalloc(maxsize, GFP_ATOMIC)) == NULL) {
       kfree(v);
       return NULL;
    }


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