summaryrefslogtreecommitdiff
path: root/sys/dev/DEVNAMES
diff options
context:
space:
mode:
authormaya <maya@NetBSD.org>2019-10-31 11:59:40 +0000
committermaya <maya@NetBSD.org>2019-10-31 11:59:40 +0000
commit0dfabda17224ea16540fa586459f2d82a5cb9c5c (patch)
treeb4461c15eb8c0ffb5b69c823be70e66ab4998aeb /sys/dev/DEVNAMES
parent0644a0a6037917a9864b9c918081c867cf229995 (diff)
check if buf/bufsz are non-NULL before freeing.
not all control messages that can be received result in buf being initialized, we might get a spurious different control message seen in practice when swapping modes a few times on a urndis device urndis0: SAMSUNG ... autoconfiguration error: urndis0: invalid address panic: kernel diagnostic assertion "p != NULL" failed: file "/cvs/src/sys/kern/subr_kmem.c", line 263 cpu0: Begin traceback... vpanic() at netbsd:vpanic+0x178 kern_assert() at netbsd:kern_assert+0x48 kmem_intr_free() at netbsd:kmem_intr_free+0xca urndis_attach() at netbsd:urndis_attach+0x4c2
Diffstat (limited to 'sys/dev/DEVNAMES')
0 files changed, 0 insertions, 0 deletions