Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs fix bug introduce...



details:   https://anonhg.NetBSD.org/src/rev/a825ffbe7ea3
branches:  trunk
changeset: 935224:a825ffbe7ea3
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 27 21:21:11 2020 +0000

description:
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

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_queue.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cdfa62a34fa9 -r a825ffbe7ea3 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_queue.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_queue.c   Sat Jun 27 19:18:58 2020 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_queue.c   Sat Jun 27 21:21:11 2020 +0000
@@ -820,7 +820,7 @@
        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 {



Home | Main Index | Thread Index | Old Index