]> git.hungrycats.org Git - linux/commit
[PATCH] fbdev: fix kernel panic from FBIO_CURSOR ioctl
authorAntonino Daplas <adaplas@hotpop.com>
Tue, 31 Aug 2004 03:41:42 +0000 (20:41 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 31 Aug 2004 03:41:42 +0000 (20:41 -0700)
commit6254ea38735e890bdcb0e238204395f73449f503
treebb84e626362dda161b03ce0aaca2b9595f31da12
parent12a88695d9b85b9dfbcd598a7490b52ad5ee157b
[PATCH] fbdev: fix kernel panic from FBIO_CURSOR ioctl

1. This fixes a kernel oops when issuing an FBIO_CURSOR ioctl if struct
   fb_cursor_user is filled with zero/NULLs.  Reported by Yuval Kogman
   <nothingmuch@woobling.org>.

2. This also fixes the cursor corruption in soft_cursor when
   sprite.scan_align != 1.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbmem.c
drivers/video/softcursor.c