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 Initialize b_dev ...
details:   https://anonhg.NetBSD.org/src/rev/a2b4846e4117
branches:  trunk
changeset: 465679:a2b4846e4117
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Dec 01 20:25:31 2019 +0000
description:
Initialize b_dev before passing buf to d_minphys (ldminphys needs this)
diffstat:
 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 87d72e20de10 -r a2b4846e4117 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c    Sun Dec 01 20:24:47 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c    Sun Dec 01 20:25:31 2019 +0000
@@ -244,6 +244,7 @@
                        } else {
                                pdk = NULL;
                        }
+                       buf.b_dev = vp->v_rdev;
                }
                if (pdk && pdk->dk_driver && pdk->dk_driver->d_minphys)
                        (*pdk->dk_driver->d_minphys)(&buf);
Home |
Main Index |
Thread Index |
Old Index