From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Bruens Date: Thu, 17 Dec 2015 02:44:22 +0100 Subject: [U-Boot] [PATCH 1/6] usb: dwc2: avoid out of bounds access In-Reply-To: <201512161129.14782.marex@denx.de> References: <1449980278-19881-1-git-send-email-stefan.bruens@rwth-aachen.de> <5670D368.6090703@wwwdotorg.org> <201512161129.14782.marex@denx.de> Message-ID: <4025776.Z9GjLMYs7F@pebbles.site> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 16 December 2015 11:29:14 Marek Vasut wrote: > > > + if (!in && xfer_len) { > > > > Do zero-length memcpy or flush_dcache_range actually cause an issue? > > I believe they should not, based on how they are implemented. I think that's correct, it is just a minor optimization. Kind regards, Stefan -- Stefan Br?ns / Bergstra?e 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424