summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-05 00:27:38 +0000
committerIan Moffett <ian@osmora.org>2025-07-05 00:27:38 +0000
commit6856d7533b4cec8d35639578b02578f28f3699bc (patch)
tree6cabb25b5efe509a3b21c2478c011a4b537c27ee /sys/include
parentac875d0caffd12074e0a7eedac1cadbf204a847a (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')
0 files changed, 0 insertions, 0 deletions