From: Devendra Naga Date: Sat, 7 Jul 2012 09:22:15 +0000 (+0000) Subject: drm/mgag200: fix null pointer dereference X-Git-Tag: v3.6-rc1~83^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dbdf0aea9585add9359e7ca5535256f866ec85c;p=pandora-kernel.git drm/mgag200: fix null pointer dereference we are referencing the pointer after doing alloc_apertures, as alloc_apertures kzallocs, the kzalloc may fail and we get a NULL. so we need to check for NULL before we dereference this pointer Signed-off-by: Devendra Naga Signed-off-by: Dave Airlie --- Reading git-diff-tree failed