aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/dev
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-11 16:22:40 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-11 16:22:40 +0100
commit9b9ef5a2c0ec8e66c7da24c4229d89a90a10e914 (patch)
tree471cb88f003eb58ce84342f2e7ab7effda04ce2d /src/kernel/dev
parenta7ff74cdf2835625282491242ede57b05ceaa782 (diff)
downloadkogata-9b9ef5a2c0ec8e66c7da24c4229d89a90a10e914.tar.gz
kogata-9b9ef5a2c0ec8e66c7da24c4229d89a90a10e914.zip
Bugfixing in progress. Strange bug: wait_on adds to waiters but later not in waiters.
Diffstat (limited to 'src/kernel/dev')
-rw-r--r--src/kernel/dev/pckbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/dev/pckbd.c b/src/kernel/dev/pckbd.c
index a911b85..8a4c002 100644
--- a/src/kernel/dev/pckbd.c
+++ b/src/kernel/dev/pckbd.c
@@ -105,7 +105,7 @@ size_t pckbd_read(fs_handle_t *h, size_t offset, size_t len, char *buf) {
}
int pckbd_poll(fs_handle_t *h, void** out_wait_obj) {
- *out_wait_obj = &pckbd_buf;
+ if (out_wait_obj) *out_wait_obj = &pckbd_buf;
return (pckbd_buf_used > 0 ? SEL_READ : 0);
}