]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add KASSERT to ensure sane nsid.
authorimp <imp@FreeBSD.org>
Fri, 1 May 2020 21:24:19 +0000 (21:24 +0000)
committerimp <imp@FreeBSD.org>
Fri, 1 May 2020 21:24:19 +0000 (21:24 +0000)
commitb150ec9fa98b917812493d1dd6c91e70a3b8d89b
treea7361eac096fe3eb2c34592041a2b16fb4b3fe75
parentaf609559e34f816c5157b3ba330b7d9046d9a8b8
Add KASSERT to ensure sane nsid.

All callers are currently filtering bad nsid to this function,
however, we'll have undefined behavior if that's not true. Add the
KASSERT to prevent that.
sys/dev/nvme/nvme.c