OSDN Git Service

gtp: fix Illegal context switch in RCU read-side critical section.
[tomoyo/tomoyo-test1.git] / drivers / net / gtp.c
index 92ef777..52f35cb 100644 (file)
@@ -959,7 +959,7 @@ static int ipv4_pdp_add(struct gtp_dev *gtp, struct sock *sk,
 
        }
 
-       pctx = kmalloc(sizeof(struct pdp_ctx), GFP_KERNEL);
+       pctx = kmalloc(sizeof(*pctx), GFP_ATOMIC);
        if (pctx == NULL)
                return -ENOMEM;