lkml.org 
[lkml]   [2013]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 5/5] imx-drm: ipu-dp: Adjust the maximum number of flows
From
Hi Philipp,

On Fri, Jun 28, 2013 at 10:53 AM, Philipp Zabel <p.zabel@pengutronix.de> wrote:

>
> If (flow == IPUV3_NUM_FLOWS << 1), this will continue and try to access
> &priv->flow[3] below, which is invalid. How about
>
> + if ((flow >> 1) >= IPUV3_NUM_FLOWS)
>
> instead?

Yes, agreed.

Thanks,

Fabio Estevam


\
 
 \ /
  Last update: 2013-06-28 16:21    [W:0.056 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site