From: Daniel Vetter Date: Sun, 30 Oct 2011 11:44:56 +0000 (+0100) Subject: drm/i810: don't acces hw regs in lastclose X-Git-Tag: v3.3-rc1~121^2~50^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40c34d042dc2f8954d5f619f6348a8659a4b416f;p=pandora-kernel.git drm/i810: don't acces hw regs in lastclose i810 uses a userspace provided mmio map using the drm core map infrastructure. By the time we reach lastclose, this is all gone and our mmio_map pointer points at freed memory. Depending upon luck that still works, most often it just oopses. Aside: drm maps aren't refcounted, so userspace can essentially oops the kernel any time it wants to. Who cares. Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed