From: Marcin Slusarz Date: Mon, 22 Aug 2011 21:14:05 +0000 (+0200) Subject: drm/nouveau: properly handle allocation failure in nouveau_sgdma_populate X-Git-Tag: v3.1-rc6~1^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c8b960930da3599e47801a54ac0ea1070545d2;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed