[FIX] correct allocation uretprobe_instance struct
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 4 Dec 2013 13:16:13 +0000 (17:16 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 4 Dec 2013 13:16:13 +0000 (17:16 +0400)
Change-Id: I5ea32889452f119076a89ac6012f59118d94017c
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
uprobe/swap_uprobes.c

index 7bd0931..8fadb5e 100644 (file)
@@ -734,7 +734,7 @@ int dbi_register_uretprobe(struct uretprobe *rp)
        INIT_HLIST_HEAD(&rp->free_instances);
 
        for (i = 0; i < rp->maxactive; i++) {
-               inst = kmalloc(sizeof(*inst), GFP_KERNEL);
+               inst = kmalloc(sizeof(*inst), GFP_ATOMIC);
                if (inst == NULL) {
                        free_urp_inst(rp);
                        return -ENOMEM;