]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i810: don't acces hw regs in lastclose
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 30 Oct 2011 11:44:56 +0000 (12:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Dec 2011 18:54:58 +0000 (19:54 +0100)
commitc373cfac1e8e970982d19bf0b42e3a0227f2b756
treec488dd68c7b146adc0e1de4f870208b9427ad42f
parentcb41c23e5d88ac06ba83f1bc7f2ec018a2b74e9f
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 <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i810/i810_dma.c