gma500: Fix dumb create crash
authorAlan Cox <alan@linux.jf.intel.com>
Mon, 9 May 2011 15:04:45 +0000 (16:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 18:16:46 +0000 (11:16 -0700)
The error path from gtt_alloc returns NULL not a ptr error. The underlying
fail is caused by a bug in the size calculation. With these two fixed it
passes kmstest, although it's not really doing anything useful yet.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found