[FIX] Use GFP_ATOMIC flag in retprobe_copy 45/46845/4
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 19 Aug 2015 09:09:34 +0000 (12:09 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Fri, 28 Aug 2015 06:00:06 +0000 (23:00 -0700)
Change-Id: I6e728b57b4e185b9312d2833e84a1abe5e86bffc
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
retprobe/retprobe.c

index 8a5daa2..e741456 100644 (file)
@@ -40,7 +40,7 @@ static int retprobe_copy(struct probe_info *dest,
        memcpy(dest, source, sizeof(*source));
 
        len = strlen(source->rp_i.args) + 1;
-       dest->rp_i.args = kmalloc(len, GFP_KERNEL);
+       dest->rp_i.args = kmalloc(len, GFP_ATOMIC);
        if (dest->rp_i.args == NULL)
                return -ENOMEM;
        memcpy(dest->rp_i.args, source->rp_i.args, len);