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

Commit e1f47c30 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 b78959e3 8f0b3d69
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"

@@ -350,6 +351,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, qstr.len + 1);
	ent->namelen = qstr.len;
	ent->mode = mode;