drm: fix issue with handle lookup for a 0 handle
authorDave Airlie <airlied@starflyer.(none)>
Mon, 5 Sep 2005 11:23:23 +0000 (21:23 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 5 Sep 2005 11:23:23 +0000 (21:23 +1000)
commit89625eb186b9b0b9454d44126f8b1bcc72ad93b7
tree0e5bf395d8c53fcfaf0790b417666a8dabae8a8e
parentf505380ba7b98ec97bf25300c2a58aeae903530b
drm: fix issue with handle lookup for a 0 handle

On 32-bit PPC a 0 handle is valid for AGP space, the 32/64 lookup
doesn't handle 0 correctly.

From: Ben Herrenschmidt <benh@kernel.crashing.org> and Paul Mackerras <paulus@samba.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_bufs.c