Date: Fri, 10 Jul 2020 10:25:49 +0200 From: "Piotr P. Stefaniak" <pstef@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r363068 - head/sys/kern Message-ID: <20200710082549.GC74062@freefall.freebsd.org> In-Reply-To: <202007100646.06A6kgnX015296@repo.freebsd.org> References: <202007100646.06A6kgnX015296@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> */ >- memcpy(sbp, &mp->mnt_stat, sizeof(*sbp)); >+ if (sbp != &mp->mnt_stat) >+ memcpy(sbp, &mp->mnt_stat, sizeof(*sbp)); > Slightly unrelated question: wouldn't it be prudent to incorporate this logic into memcpy?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200710082549.GC74062>