diff options
| author | Jeff Layton <[email protected]> | 2024-11-11 15:09:55 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-11-12 13:37:12 +0000 |
| commit | 75ead69a717332efa70303fba85e1876793c74a9 (patch) | |
| tree | f5908057df9002e0bbc28a5747655ce7a979739e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | fs:aio: Remove TODO comment suggesting hash or array usage in io_cancel() (diff) | |
| download | kernel-75ead69a717332efa70303fba85e1876793c74a9.tar.gz kernel-75ead69a717332efa70303fba85e1876793c74a9.zip | |
fs: don't let statmount return empty strings
When one of the statmount_string() handlers doesn't emit anything to
seq, the kernel currently sets the corresponding flag and emits an empty
string.
Given that statmount() returns a mask of accessible fields, just leave
the bit unset in this case, and skip any NULL termination. If nothing
was emitted to the seq, then the EOVERFLOW and EAGAIN cases aren't
applicable and the function can just return immediately.
Signed-off-by: Jeff Layton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Miklos Szeredi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
