diff options
Diffstat (limited to 'src/kernel/arch/amd64/driver')
-rw-r--r-- | src/kernel/arch/amd64/driver/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/driver/util.c b/src/kernel/arch/amd64/driver/util.c index 0f0ee34..2b33849 100644 --- a/src/kernel/arch/amd64/driver/util.c +++ b/src/kernel/arch/amd64/driver/util.c @@ -26,6 +26,7 @@ bool postqueue_pop(VfsReq **queue, void (*accept)(VfsReq *)) { VfsReq *req = *queue; if (req == NULL) return false; *queue = req->postqueue_next; + req->postqueue_next = NULL; accept(req); return true; } @@ -45,6 +46,7 @@ void postqueue_ringreadall(VfsReq **queue, ring_t *r) { while (*queue) { req = *queue; *queue = req->postqueue_next; + req->postqueue_next = NULL; size_t ret = min(mlen, req->output.len); assert(req->type == VFSOP_READ); |