staging: gma500: fix some swapped gotos
commit0e83f46d3869a5255a04b875bb885bd141a609ef
authorDan Carpenter <error27@gmail.com>
Sat, 26 Feb 2011 12:48:12 +0000 (26 15:48 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 1 Mar 2011 03:00:30 +0000 (28 19:00 -0800)
treeca4376cb2c5fef18ec0deed87528ab9531ebffac
parent1f2b472cc92d6178c5b24c12687783a0dedb9202
staging: gma500: fix some swapped gotos

These gotos were swapped.  In the original code, the first would result
in a NULL dereference and the second would result in a memory leak.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_fb.c