summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-11-13 15:54:22 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-11-13 16:37:04 +0100
commitcfdbb712fbf4dbb8587d986eab77d77093da5fbf (patch)
tree01a59eb6cfdd4f9f8b676ed17d3e652bf7d267bd /Servers/WindowServer
parentfabdc8cdcb6c8bf1519b0f9e7b6e353d9000fc07 (diff)
downloadserenity-cfdbb712fbf4dbb8587d986eab77d77093da5fbf.zip
Kernel: Fix failing in can_read()/can_write()
Now that the SystemMonitor queries which open files can be read and written to, having can_read()/can_write() unconditionally call ASSERT_NOT_REACHED() leads to system crashes when inspecting the WindowServer. Instead, just return true from can_read()/can_write() (indicating that the read()/write() syscalls should not block) and return -EINVAL when trying to actually read from or write to these devices.
Diffstat (limited to 'Servers/WindowServer')
0 files changed, 0 insertions, 0 deletions