diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2023-06-27 12:12:11 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2023-06-29 20:25:35 +0200 |
commit | e901f17b0742e36c9d79885a912b666cc1deb210 (patch) | |
tree | 35a3ece6c5d363c5b41027a9711c58b031677efa /mm/mremap.c | |
parent | nfs: don't report STATX_BTIME in ->getattr (diff) | |
download | linux-e901f17b0742e36c9d79885a912b666cc1deb210.tar.xz linux-e901f17b0742e36c9d79885a912b666cc1deb210.zip |
NFS: Don't cleanup sysfs superblock entry if uninitialized
Its possible to end up in nfs_free_server() before the server's superblock
sysfs entry has been initialized, in which case calling kobject_put() will
emit a WARNING. Check if the kobject has been initialized before cleaning
it up.
Fixes: 1c7251187dc0 ("NFS: add superblock sysfs entries")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions