Author: zbb Date: Fri Nov 27 18:13:28 2015 New Revision: 291399 URL: https://svnweb.freebsd.org/changeset/base/291399
Log: Use properly aligned buffer in usb_alloc The PA adress must be gathered from an aligned VA, not the RAW pointer to the memory space. Reviewed by: hselasky Submitted by: Wojciech Macek <w...@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4140 Modified: head/sys/boot/usb/usb_busdma_loader.c Modified: head/sys/boot/usb/usb_busdma_loader.c ============================================================================== --- head/sys/boot/usb/usb_busdma_loader.c Fri Nov 27 16:23:27 2015 (r291398) +++ head/sys/boot/usb/usb_busdma_loader.c Fri Nov 27 18:13:28 2015 (r291399) @@ -233,7 +233,7 @@ usb_pc_alloc_mem(struct usb_page_cache * pc->ismultiseg = (align == 1); /* compute physical address */ - usb_pc_common_mem_cb(pc, ptr, size); + usb_pc_common_mem_cb(pc, pc->buffer, size); usb_pc_cpu_flush(pc); return (0); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"