device_get_path(): take sbuf directly
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 8 Oct 2022 00:08:14 +0000 (03:08 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 19 Oct 2022 16:39:40 +0000 (19:39 +0300)
commit555a861d6826eca8710e361ee4d0ef29b28f39d2
tree7f7761e109f64c00aaaddd47abe501dc3e5c2a03
parent8cf783bde35352eb6105cefa9fcb586c01b77179
device_get_path(): take sbuf directly

This allows to fix a bug where sbuf allocation done in the context of
dev_wired_cache_match() must use non-sleepable allocations.

Suggested by: jhb
Reviewed by: jhb, takawata
Discussed with: imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D36899
sys/kern/subr_bus.c