]> err.no Git - linux-2.6/commit
drm: i810_dma.c: fix pointer arithmetic for 64-bit target
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 16 Aug 2006 01:54:07 +0000 (11:54 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 21 Sep 2006 19:32:33 +0000 (05:32 +1000)
commitc7aed1790254aed286b7bfb51167c2676df86f4b
treea33b073fb62cb18cf6184da8c2f7d2e7f94533ae
parent0a0c721dc5d0de011e5d363cd454c60c66ca00ec
drm: i810_dma.c: fix pointer arithmetic for 64-bit target

First warning result from open-coded PTR_ERR,
the rest is caused by code like this:

*(u32 *) ((u32) buf_priv->kernel_virtual + used)

I've also fixed a missing PTR_ERR in i830_dma.c

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i810_dma.c
drivers/char/drm/i830_dma.c