Commit 41877ce4 authored by Osama Muhammad's avatar Osama Muhammad Committed by sanglipeng
Browse files

nfcsim.c: Fix error checking for debugfs_create_dir

stable inclusion
from stable-v5.10.186
commit 7d1a0733a55e82836e1f706de144b1347f03f60f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8J4KH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7d1a0733a55e82836e1f706de144b1347f03f60f



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

[ Upstream commit 9b9e46aa ]

This patch fixes the error checking in nfcsim.c.
The DebugFS kernel API is developed in
a way that the caller can safely ignore the errors that
occur during the creation of DebugFS nodes.

Signed-off-by: default avatarOsama Muhammad <osmtendev@gmail.com>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 36f41157
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment