drm/radeon: fix a bogus kfree
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Mon, 7 Jan 2013 23:21:58 +0000 (18:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Jan 2013 22:05:36 +0000 (17:05 -0500)
commita6b7e1a02b77ab8fe8775d20a88c53d8ba55482e
tree05fba3ee92cb55042fc51112495edfc229fcaa5b
parentff4bd0827764e10a428a9d39e6814c5478863f94
drm/radeon: fix a bogus kfree

parser->chunks[.].kpage[.] is not always kmalloc-ed
by the parser initialization, so parser_fini should
not try to kfree it if it didn't allocate it.

This patch fixes a kernel oops that can be provoked
in UMS mode.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_cs.c