]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commitf92e88343e713c65f6edef4ed7883ba37a8ccbfd
treea7f2deb9338eb1167f25e100a074a491207cbd85
parentea1ce3762b0ed9647d002dad8f3745c2ae534d0a
gma500: Fix dumb create crash

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>
drivers/staging/gma500/psb_gem.c
drivers/staging/gma500/psb_gtt.c