diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2021-08-11 20:23:25 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2021-08-11 20:41:38 +0000 |
| commit | 710c055673b3a39ff6e5fdf0bef49437d1e0c9a3 (patch) | |
| tree | 5a07f19b92f075dbdd3efd9abc152b16909f7677 /sys/dev/virtio/network | |
| parent | 24fe46128495fc32b31729d9bba86dd7c5280ce3 (diff) | |
Diffstat (limited to 'sys/dev/virtio/network')
| -rw-r--r-- | sys/dev/virtio/network/if_vtnet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c index e65914c5184f..bbda5cb90707 100644 --- a/sys/dev/virtio/network/if_vtnet.c +++ b/sys/dev/virtio/network/if_vtnet.c @@ -36,9 +36,10 @@ __FBSDID("$FreeBSD$"); #include <sys/systm.h> #include <sys/kernel.h> #include <sys/sockio.h> -#include <sys/mbuf.h> #include <sys/malloc.h> +#include <sys/mbuf.h> #include <sys/module.h> +#include <sys/msan.h> #include <sys/socket.h> #include <sys/sysctl.h> #include <sys/random.h> @@ -2107,6 +2108,8 @@ vtnet_rxq_eof(struct vtnet_rxq *rxq) continue; } + kmsan_mark_mbuf(m, KMSAN_STATE_INITED); + /* * Save an endian swapped version of the header prior to it * being stripped. The header is always at the start of the |
