summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2015-08-26 13:55:30 +0300
committerDmitry Kovalenko <d.kovalenko@samsung.com>2015-08-27 23:36:11 -0700
commit16d2032b87595d8f872e44bc085df9f9dcdf5cbf (patch)
tree01c1f99f7e7c9af29676f6378838482e97fb3f08
parent2b54b37c9a190cb48477fd68a0e004efaf64b163 (diff)
downloadswap-modules-16d2032b87595d8f872e44bc085df9f9dcdf5cbf.tar.gz
swap-modules-16d2032b87595d8f872e44bc085df9f9dcdf5cbf.tar.bz2
swap-modules-16d2032b87595d8f872e44bc085df9f9dcdf5cbf.zip
[FIX] Allocate uretprobe_instance with correct gfp flag
Need to be GFP_ATOMIC Change-Id: I0b98334c699ac0e509eea479cab6c8c28c9a1b96 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
-rw-r--r--uprobe/swap_uprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uprobe/swap_uprobes.c b/uprobe/swap_uprobes.c
index 838820e1..c5daf1c0 100644
--- a/uprobe/swap_uprobes.c
+++ b/uprobe/swap_uprobes.c
@@ -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;