Subject: Re: [PATCH 1/2 v4] Driver for Freescale 8610 and 5121 DIU

From: Scott Wood <[email-masked]>
Date: Fri, 28 Mar 2008 13:09:05 -0500

Timur Tabi wrote:
> Scott Wood wrote:
> 
>> ...but not anywhere else.  All user pointers should have a __user 
>> annotation.
> 
> Even in a typecast?

Yes.  Otherwise, as far as sparse sees, you're passing a kernel pointer 
to something expecting a user pointer.

-Scott