]> git.baikalelectronics.ru Git - kernel.git/commit
video: Fix use-after-free by vga16fb on rmmod
authorBruno Prémont <bonbons@linux-vserver.org>
Tue, 24 May 2011 19:59:17 +0000 (19:59 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 6 Jun 2011 09:14:45 +0000 (18:14 +0900)
commitea33aa1b73e5358e92dde90cab503b10109a20a8
tree7469b8d254760a64ecf0450ca86d2c626e37a1df
parent78210a0f0eca262a0200989c62892cdf11b224fc
video: Fix use-after-free by vga16fb on rmmod

Since fb_info is now refcounted and thus may get freed at any time it
gets unregistered module unloading will try to unregister framebuffer
as stored in platform data on probe though this pointer may
be stale.

Cleanup platform data on framebuffer release.

CC: stable@kernel.org
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/vga16fb.c