From: Łukasz Stelmach Date: Mon, 22 Nov 2021 09:03:00 +0000 (+0100) Subject: kdbus: drop collected mounts X-Git-Tag: accepted/tizen/6.5/unified/20211125.211636~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be5781a07d48f8fd62633310fea57963aea1595d;p=platform%2Fkernel%2Flinux-rpi.git kdbus: drop collected mounts According to commit 8aec08094570 ("[PATCH] new helpers - collect_mounts() and release_collected_mounts()") collect_mounts() needs to be followed by drop_collected_mounts(). Change-Id: Ib00219da5dbe3ae5aad56d967bd8441ac46746d4 Fixes: c86613173f35 ("kdbus: read hide_pid and pid_gid from mounted proc") Signed-off-by: Łukasz Stelmach --- diff --git a/ipc/kdbus/metadata.c b/ipc/kdbus/metadata.c index bdf8253..274a419 100644 --- a/ipc/kdbus/metadata.c +++ b/ipc/kdbus/metadata.c @@ -1237,6 +1237,7 @@ static unsigned int kdbus_proc_permission(const struct pid *req_pid, ret = KDBUS_META_PROC_NONE; out: + drop_collected_mounts(root_mnt); put_task_struct(task); return ret; }