]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: properly handle allocation failure in nouveau_sgdma_populate
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 22 Aug 2011 21:14:05 +0000 (23:14 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 9 Sep 2011 07:24:06 +0000 (17:24 +1000)
commitc816aa68a0ad2a897df12e91095187ce35095511
treee0822fc2fb25b39e2b4fc957615a76ce0cdae0ed
parent5e48f6145c07e97acb2a0dc1c66e1899fc84f06e
drm/nouveau: properly handle allocation failure in nouveau_sgdma_populate

Not cleaning after alloc failure would result in crash on destroy,
because nouveau_sgdma_clear assumes "ttm_alloced" to be not null when
"pages" is not null.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_sgdma.c