Date: Fri, 19 Jan 2018 19:18:14 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328170 - head/sys/cam/mmc Message-ID: <201801191918.w0JJIEGt062131@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: scottl Date: Fri Jan 19 19:18:14 2018 New Revision: 328170 URL: https://svnweb.freebsd.org/changeset/base/328170 Log: Fix compile errors in r328165 Reported by: O. Hartmann Sponsored by: Netflix Modified: head/sys/cam/mmc/mmc_xpt.c Modified: head/sys/cam/mmc/mmc_xpt.c ============================================================================== --- head/sys/cam/mmc/mmc_xpt.c Fri Jan 19 19:09:17 2018 (r328169) +++ head/sys/cam/mmc/mmc_xpt.c Fri Jan 19 19:18:14 2018 (r328170) @@ -368,11 +368,9 @@ mmc_dev_advinfo(union ccb *start_ccb) cdai->provsiz = 0; break; case CDAI_TYPE_MMC_PARAMS: - cdai->provsiz = device->mmc_ident_data; - if (device->mmc_ident_data == NULL) - break; + cdai->provsiz = sizeof(struct mmc_params); amt = MIN(cdai->provsiz, cdai->bufsiz); - memcpy(cdai->buff, device->mmc_ident_data, amt); + memcpy(cdai->buf, &device->mmc_ident_data, amt); break; default: panic("Unknown buftype");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801191918.w0JJIEGt062131>