[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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d4852ff218
commit
4cb9ff3bdb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user