Skip to contentSkip to conversation

qdisc oops fix

PATCH New Tomas Szepe 1 participant 1 message Apr 15, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qdisc oops fix

Marcelo, Alan,

The following patch (recently posted by Martin Volf <[email protected]>) indeed fixes the described (Message-Id: <[email protected]>) instability issue.

Please apply,

Signature · 14 lines
Tomas Szepe <[email protected]>


--- sch_generic.c.orig  2003-01-04 14:42:02.000000000 +0100
+++ sch_generic.c       2003-04-12 08:58:34.000000000 +0200
@@ -372,7 +372,7 @@
        struct Qdisc *sch;
        int size = sizeof(*sch) + ops->priv_size;
 
-       sch = kmalloc(size, GFP_KERNEL);
+       sch = kmalloc(size, GFP_ATOMIC);
        if (!sch)
                return NULL;
        memset(sch, 0, size);