diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-05 00:27:38 +0000 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-05 00:27:38 +0000 |
commit | 6856d7533b4cec8d35639578b02578f28f3699bc (patch) | |
tree | 6cabb25b5efe509a3b21c2478c011a4b537c27ee /sys/include/arch/amd64 | |
parent | ac875d0caffd12074e0a7eedac1cadbf204a847a (diff) |
kernel: tmpfs: Prevent read() on empty files
If we have never written to a tmpfs file, the buffer for it will have
never been allocated and that would lead to NULL pointer issues such as
system-wide crashes. Return zero bytes read if nothing was ever written.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/arch/amd64')
0 files changed, 0 insertions, 0 deletions