From: Pauli Nieminen Date: Fri, 19 Mar 2010 07:44:33 +0000 (+0000) Subject: drm/radeon/kms: Fix NULL pointer dereference if memory allocation failed. X-Git-Tag: v2.6.34-rc4~88^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcbc451ba1948fba967198bd150ecbd10bbb7075;p=pandora-kernel.git drm/radeon/kms: Fix NULL pointer dereference if memory allocation failed. When there is allocation failure in radeon_cs_parser_relocs parser->nrelocs is not cleaned. This causes NULL pointer defeference in radeon_cs_parser_fini when clean up code is trying to loop over the relocation array and free the objects. Fix adds a check for a possible NULL pointer in clean up code. Signed-off-by: Pauli Nieminen Cc: stable@kernel.org Signed-off-by: Dave Airlie --- Reading git-diff-tree failed