diff options
Diffstat (limited to 'src/kernel/dev')
-rw-r--r-- | src/kernel/dev/pckbd.c | 2 |
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); } |