Commit 013285a4 authored by Wang Ming's avatar Wang Ming Committed by Zizhi Wo
Browse files

fs: Fix error checking for d_hash_and_lookup()

mainline inclusion
from mainline-v6.6-rc1
commit 0d5a4f8f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LNLY?from=project-issue

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0d5a4f8f775ff990142cdc810a84eae078589d27



--------------------------------

The d_hash_and_lookup() function returns error pointers or NULL.
Most incorrect error checks were fixed, but the one in int path_pts()
was forgotten.

Fixes: eedf265a ("devpts: Make each mount of devpts an independent filesystem.")
Signed-off-by: default avatarWang Ming <machel@vivo.com>
Message-Id: <20230713120555.7025-1-machel@vivo.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarZizhi Wo <wozizhi@huawei.com>
parent 8c17b6e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment