[FIX] Allocate uretprobe_instance with correct gfp flag 56/46856/4
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 26 Aug 2015 10:55:30 +0000 (13:55 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Fri, 28 Aug 2015 06:36:11 +0000 (23:36 -0700)
Need to be GFP_ATOMIC

Change-Id: I0b98334c699ac0e509eea479cab6c8c28c9a1b96
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
uprobe/swap_uprobes.c

index 838820e..c5daf1c 100644 (file)
@@ -870,7 +870,7 @@ int swap_register_uretprobe(struct uretprobe *rp)
        INIT_HLIST_HEAD(&rp->free_instances);
 
        for (i = 0; i < rp->maxactive; i++) {
-               inst = kmalloc(sizeof(*inst) + rp->data_size, GFP_ATOMIC);
+               inst = kmalloc(sizeof(*inst) + rp->data_size, GFP_KERNEL);
                if (inst == NULL) {
                        free_urp_inst(rp);
                        return -ENOMEM;