aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/console/softcursor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/console/softcursor.c b/drivers/video/console/softcursor.c
index 25f835bf3d72..46dd8f5d2e9e 100644
--- a/drivers/video/console/softcursor.c
+++ b/drivers/video/console/softcursor.c
@@ -35,8 +35,7 @@ int soft_cursor(struct fb_info *info, struct fb_cursor *cursor)
35 dsize = s_pitch * cursor->image.height; 35 dsize = s_pitch * cursor->image.height;
36 36
37 if (dsize + sizeof(struct fb_image) != ops->cursor_size) { 37 if (dsize + sizeof(struct fb_image) != ops->cursor_size) {
38 if (ops->cursor_src != NULL) 38 kfree(ops->cursor_src);
39 kfree(ops->cursor_src);
40 ops->cursor_size = dsize + sizeof(struct fb_image); 39 ops->cursor_size = dsize + sizeof(struct fb_image);
41 40
42 ops->cursor_src = kmalloc(ops->cursor_size, GFP_ATOMIC); 41 ops->cursor_src = kmalloc(ops->cursor_size, GFP_ATOMIC);