Re: [PATCH 1/2 v4] Driver for Freescale 8610 and 5121 DIU
From: Scott Wood
Date: Fri Mar 28 2008 - 14:09:52 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/