fs: Fix error checking for d_hash_and_lookup()
stable inclusion from stable-v4.19.295 commit 3b2531ba780099c8cfde73d2b426ae52e6afbff1 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8EK5K CVE: NA -------------------------------- [ Upstream commit 0d5a4f8f ] 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:Wang Ming <machel@vivo.com> Message-Id: <20230713120555.7025-1-machel@vivo.com> Signed-off-by:
Christian Brauner <brauner@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Yongqiang Liu <liuyongqiang13@huawei.com>
Loading
Please sign in to comment