fix bug introduced in conversion to kmem(9), passing address of the local

variable instead of pointer to allocated memory

should fix PR kern/55426 by Andreas Gustafsson
This commit is contained in:
jdolecek 2020-06-27 21:21:11 +00:00
parent e41114cd45
commit 0762753c60

View File

@ -820,7 +820,7 @@ again:
search = kmem_zalloc(sizeof (*search), KM_NOSLEEP);
if (search) {
search->io_offset = vq->vq_last_offset + 1;
VERIFY3P(avl_find(tree, &search, &idx), ==, NULL);
VERIFY3P(avl_find(tree, search, &idx), ==, NULL);
kmem_free(search, sizeof (*search));
zio = avl_nearest(tree, idx, AVL_AFTER);
} else {