From: Ilia Mirkin Date: Sun, 19 Jan 2014 15:30:32 +0000 (-0500) Subject: drm/nouveau/mxm: fix null deref on load X-Git-Tag: v3.13~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72de182362e013b2c2cc92092d97fff58e429d5d;p=pandora-kernel.git drm/nouveau/mxm: fix null deref on load Since commit 61b365a505d6 ("drm/nouveau: populate master subdev pointer only when fully constructed"), the nouveau_mxm(bios) call will return NULL, since it's still being called from the constructor. Instead, pass the mxm pointer via the unused data field. See https://bugs.freedesktop.org/show_bug.cgi?id=73791 Reported-by: Andreas Reis Tested-by: Andreas Reis Signed-off-by: Ilia Mirkin Cc: Ben Skeggs Cc: Dave Airlie Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed