]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
9p: fix /sys/fs/9p/caches overwriting itself
authorRandall P. Embry <rpembry@gmail.com>
Fri, 26 Sep 2025 09:27:30 +0000 (18:27 +0900)
committerDominique Martinet <asmadeus@codewreck.org>
Sat, 27 Sep 2025 12:44:36 +0000 (21:44 +0900)
commit86db0c32f16c5538ddb740f54669ace8f3a1f3d7
tree10babba19156f95d9097acc84ed70ae24658dead
parent623fa18f6c94e589b29c4e6277943364f1bb71d6
9p: fix /sys/fs/9p/caches overwriting itself

caches_show() overwrote its buffer on each iteration,
so only the last cache tag was visible in sysfs output.

Properly append with snprintf(buf + count, …).

Signed-off-by: Randall P. Embry <rpembry@gmail.com>
Message-ID: <20250926-v9fs_misc-v1-2-a8b3907fc04d@codewreck.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/v9fs.c