[PATCH] i810fb_cursor(): use GFP_ATOMIC

The console cursor can be called in atomic context.  Change memory
allocation to use the GFP_ATOMIC flag in i810fb_cursor().

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Antonino A. Daplas
2006-03-22 00:07:36 -08:00
committed by Linus Torvalds
parent 4078006568
commit 8a2cda0070

View File

@@ -1508,7 +1508,7 @@ static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
int size = ((cursor->image.width + 7) >> 3) * int size = ((cursor->image.width + 7) >> 3) *
cursor->image.height; cursor->image.height;
int i; int i;
u8 *data = kmalloc(64 * 8, GFP_KERNEL); u8 *data = kmalloc(64 * 8, GFP_ATOMIC);
if (data == NULL) if (data == NULL)
return -ENOMEM; return -ENOMEM;