]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee155523cf020c81259493c5581c53060d3e464c
tree05fba3ee92cb55042fc51112495edfc229fcaa5b
parentb5a83f455b1a492c2c4ae22dbeefe17049f2d2a4
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