Source-Changes archive

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

CVS commit: src/sys/dev/pci



Module Name:    src
Committed By:   uwe
Date:           Wed Apr 20 22:08:10 UTC 2022

Modified Files:
        src/sys/dev/pci: vio9p.c

Log Message:
vio9p: avoid null pointer dereference on attach.

Pass "vqs" argument to virtio_child_attach_start().  The virtio API is
not quite clear to me here - there's also a separate setter
virtio_child_attach_set_vqs that performs some additional actions.

Queue setup for Virtio 1.0 accesses virtio_softc::sc_vqs and we didn't
set it.  QEMU exposes only the old virtio interface, so it doesn't
trigger the problem.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/vio9p.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index