From: Alex Ivanov Date: Fri, 20 Sep 2013 13:36:06 +0000 (+0400) Subject: drm/radeon: Make r100_cp_ring_info() and radeon_ring_gfx() safe (v2) X-Git-Tag: v3.12-rc3~7^2~1^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eb3448aa6b31fbf24c31756aba7940cac5ad6b8;p=pandora-kernel.git drm/radeon: Make r100_cp_ring_info() and radeon_ring_gfx() safe (v2) Prevent NULL pointer dereference in case when radeon_ring_fini() did it's job. Reading of r100_cp_ring_info and radeon_ring_gfx debugfs entries will lead to a KP if ring buffer was deallocated, e.g. on failed ring test. Seen on PA-RISC machine having "radeon: ring test failed (scratch(0x8504)=0xCAFEDEAD)" issue. v2: agd5f: add some parens around ring->ready check Signed-off-by: Alex Ivanov Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- Reading git-diff-tree failed