From: John Harrison Date: Fri, 31 Oct 2014 12:00:26 +0000 (+0000) Subject: drm/i915: Fix null pointer dereference in ring cleanup code X-Git-Tag: omap-for-v3.20/drop-legacy-3517~77^2~64^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6402c330a62685c77c32d1bdfa882759c9f8e8a7;p=pandora-kernel.git drm/i915: Fix null pointer dereference in ring cleanup code If a ring failed to initialise for any reason then the error path would try to clean up all rings including those that had not yet been allocated. The ring clean up code did a check that the ring was valid before starting its work. Unfortunately, that was after it had already dereferenced the ring to obtain a dev_private pointer. Signed-off-by: John Harrison Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed