From 2941010b58913e5a886e18cc23f82f3a6433c41a Mon Sep 17 00:00:00 2001 From: Brandon Bergren Date: Wed, 26 Aug 2020 19:30:42 +0000 Subject: [PATCH] [PowerPC] Fix build failure in sec.c Fix a typo in r364799 that was breaking powerpc and powerpcspe build. MFC with: 364799 --- sys/dev/sec/sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sec/sec.c b/sys/dev/sec/sec.c index 342ee849aa2b..6af560e9bbb2 100644 --- a/sys/dev/sec/sec.c +++ b/sys/dev/sec/sec.c @@ -852,7 +852,7 @@ sec_desc_map_dma(struct sec_softc *sc, struct sec_dma_mem *dma_mem, size = m_length(crp->crp_buf.cb_mbuf, NULL); break; case CRYPTO_BUF_VMPAGE: - size = PAGE_SIZE - cb->cb_vm_page_offset; + size = PAGE_SIZE - crp->crp_buf.cb_vm_page_offset; break; default: return (EINVAL);