diff options
Diffstat (limited to 'drivers/video/console')
| -rw-r--r-- | drivers/video/console/bitblit.c | 2 | ||||
| -rw-r--r-- | drivers/video/console/fbcon.c | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/console/bitblit.c b/drivers/video/console/bitblit.c index 28b1a834906..61b182bf32a 100644 --- a/drivers/video/console/bitblit.c +++ b/drivers/video/console/bitblit.c @@ -162,7 +162,7 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info,  	image.depth = 1;  	if (attribute) { -		buf = kmalloc(cellsize, GFP_KERNEL); +		buf = kmalloc(cellsize, GFP_ATOMIC);  		if (!buf)  			return;  	} diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 88e92041d8f..fdefa8fd72c 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -449,7 +449,7 @@ static int __init fb_console_setup(char *this_opt)  	while ((options = strsep(&this_opt, ",")) != NULL) {  		if (!strncmp(options, "font:", 5)) -			strcpy(fontname, options + 5); +			strlcpy(fontname, options + 5, sizeof(fontname));  		if (!strncmp(options, "scrollback:", 11)) {  			options += 11;  |