[meta-freescale] [meta-fsl-arm][PATCH] imx-vpu: fix checks of IOGetVirtMem() return value

Eric Nelson eric.nelson at boundarydevices.com
Sat Jun 28 08:48:13 PDT 2014


Thanks Lauren.

On 06/28/2014 07:45 AM, Lauren Post wrote:
> The patch is good.  Team said they'll push it into our upcoming beta release.
> 
> -----Original Message-----
> From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-bounces at yoctoproject.org] On Behalf Of Eric Nelson
> Sent: Saturday, June 21, 2014 12:53 PM
> To: meta-freescale at yoctoproject.org
> Subject: [meta-freescale] [meta-fsl-arm][PATCH] imx-vpu: fix checks of IOGetVirtMem() return value
> 
> The IOGetVirtMem() routine returns the address of a memory block or -1 (MAP_FAILED) to indicate an error.
> 
> Many callers of this routine tested the return value for <= 0 to detect failure, and at least with a 3G/1G memory split configured in the kernel, a negative number (!= -1) is a valid (successful) return value.
> 
> Without this patch, the IOSystemInit() will often detect failure incorrectly.
> 
> Signed-off-by: Eric Nelson <eric.nelson at boundarydevices.com>
> ---
>  ...etVirtMem-returns-1-MAP_FAILED-on-failure.patch | 81 ++++++++++++++++++++++



More information about the meta-freescale mailing list