mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
NFS: sysfs: fix leak when nfs_client kobject add fails
[ Upstream commit7a7a345652] If adding the second kobject fails, drop both references to avoid sysfs residue and memory leak. Fixes:e96f9268ee("NFS: Make all of /sys/fs/nfs network-namespace unique") Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Reviewed-by: Benjamin Coddington <ben.coddington@hammerspace.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bd4064f18d
commit
b058e49fd6
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue