[Bug 280098] 9pfs panics on qemu+kvm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Jul 2024 22:25:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280098
Mark Peek <mp@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mp@FreeBSD.org
--- Comment #4 from Mark Peek <mp@FreeBSD.org> ---
This untested patch is along the same lines as yours but might be a little
cleaner.
diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c
b/sys/dev/virtio/p9fs/virtio_p9fs.c
index aa174d3bd5ba..3600e0ea09c9 100644
--- a/sys/dev/virtio/p9fs/virtio_p9fs.c
+++ b/sys/dev/virtio/p9fs/virtio_p9fs.c
@@ -352,9 +352,9 @@ vt9p_attach(device_t dev)
mount_tag = malloc(mount_tag_len + 1, M_P9FS_MNTTAG,
M_WAITOK | M_ZERO);
- virtio_read_device_config(dev,
+ virtio_read_device_config_array(dev,
offsetof(struct virtio_9pnet_config, mount_tag),
- mount_tag, mount_tag_len);
+ mount_tag, 1, mount_tag_len);
device_printf(dev, "Mount tag: %s\n", mount_tag);
--
You are receiving this mail because:
You are the assignee for the bug.