From: Antonino A. Daplas Date: Wed, 22 Mar 2006 08:07:36 +0000 (-0800) Subject: [PATCH] i810fb_cursor(): use GFP_ATOMIC X-Git-Tag: v2.6.17-rc1~732^2~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a2cda007068e838ac6494cde74c37534f04f8dc;p=profile%2Fivi%2Fkernel-x86-ivi.git [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 Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c index d8467c0..788297e 100644 --- a/drivers/video/i810/i810_main.c +++ b/drivers/video/i810/i810_main.c @@ -1508,7 +1508,7 @@ static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor) int size = ((cursor->image.width + 7) >> 3) * cursor->image.height; int i; - u8 *data = kmalloc(64 * 8, GFP_KERNEL); + u8 *data = kmalloc(64 * 8, GFP_ATOMIC); if (data == NULL) return -ENOMEM;