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:
parent
e41114cd45
commit
0762753c60
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user