Date: Mon, 14 Dec 2020 10:16:59 +0000 (UTC) From: Michal Meloun <mmel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r368630 - stable/12/sys/dev/nvme Message-ID: <202012141016.0BEAGxN9099775@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmel Date: Mon Dec 14 10:16:59 2020 New Revision: 368630 URL: https://svnweb.freebsd.org/changeset/base/368630 Log: MFC r367955: Ensure that the buffer is in nvme_single_map() mapped to single segment. Not a functional change. Modified: stable/12/sys/dev/nvme/nvme_private.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/nvme/nvme_private.h ============================================================================== --- stable/12/sys/dev/nvme/nvme_private.h Mon Dec 14 10:14:32 2020 (r368629) +++ stable/12/sys/dev/nvme/nvme_private.h Mon Dec 14 10:16:59 2020 (r368630) @@ -477,6 +477,7 @@ nvme_single_map(void *arg, bus_dma_segment_t *seg, int { uint64_t *bus_addr = (uint64_t *)arg; + KASSERT(nseg == 1, ("number of segments (%d) is not 1", nseg)); if (error != 0) printf("nvme_single_map err %d\n", error); *bus_addr = seg[0].ds_addr;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012141016.0BEAGxN9099775>