diff options
author | 2023-08-24 00:33:45 +0200 | |
---|---|---|
committer | 2023-08-29 14:58:48 +0200 | |
commit | f73016b63b09edec8adf7e182600c52465c56ee7 (patch) | |
tree | 6c661ed93167609141888cae56a5d44e3933bfb2 /include/uapi | |
parent | fuse: invalidate dentry on EEXIST creates or ENOENT deletes (diff) | |
download | linux-f73016b63b09edec8adf7e182600c52465c56ee7.tar.gz linux-f73016b63b09edec8adf7e182600c52465c56ee7.tar.bz2 linux-f73016b63b09edec8adf7e182600c52465c56ee7.zip |
fuse: conditionally fill kstat in fuse_do_statx()
The code path
fuse_update_attributes
fuse_update_get_attr
fuse_do_statx
has the risk to use a NULL pointer for struct kstat *stat, although current
callers of fuse_update_attributes() only set request_mask to values that
will trigger the call of fuse_do_getattr(), which already handles the NULL
pointer. Future updates might miss that fuse_do_statx() does not handle it
it is safer to add a condition already right now.
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Fixes: d3045530bdd2 ("fuse: implement statx")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions