Skip to content
Commit f73016b6 authored by Bernd Schubert's avatar Bernd Schubert Committed by Miklos Szeredi
Browse files

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: default avatarBernd Schubert <bschubert@ddn.com>
Fixes: d3045530 ("fuse: implement statx")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 7d875e66
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment