From: Vyacheslav Cherkashin Date: Wed, 19 Aug 2015 09:09:34 +0000 (+0300) Subject: [FIX] Use GFP_ATOMIC flag in retprobe_copy X-Git-Tag: submit/tizen_2.4/20150912.103527~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e6041b6b9b8eda356de30851ad0c8aec2d7af28;p=kernel%2Fswap-modules.git [FIX] Use GFP_ATOMIC flag in retprobe_copy Change-Id: I6e728b57b4e185b9312d2833e84a1abe5e86bffc Signed-off-by: Vyacheslav Cherkashin --- diff --git a/retprobe/retprobe.c b/retprobe/retprobe.c index 8a5daa2..e741456 100644 --- a/retprobe/retprobe.c +++ b/retprobe/retprobe.c @@ -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);