Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbc48fde authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "proc: Ignore kmemleak false positive in __proc_create"

parents b01ab4e5 70021510
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <asm/uaccess.h>
#include <linux/kmemleak.h>

#include "internal.h"

@@ -391,6 +392,7 @@ static struct proc_dir_entry *__proc_create(struct proc_dir_entry **parent,
	if (!ent)
		goto out;

	kmemleak_not_leak(ent);
	memcpy(ent->name, fn, len + 1);
	ent->namelen = len;
	ent->mode = mode;