commit | 045451f9de4d9b7a7a961bf2428b990edf543271 | [log] [tgz] |
---|---|---|
author | Marcin Slusarz <marcin.slusarz@gmail.com> | Mon Aug 22 23:14:05 2011 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Mon Oct 03 11:40:14 2011 -0700 |
tree | 0daaed22d2f41ba461837f1fa37e1f62b8621ee3 | |
parent | 766357153d2e17eff9bf45ed66bff015472c1159 [diff] |
drm/nouveau: properly handle allocation failure in nouveau_sgdma_populate commit 17c8b960930da3599e47801a54ac0ea1070545d2 upstream. 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> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>