diff options
Diffstat (limited to 'drivers/video/udlfb.c')
-rw-r--r-- | drivers/video/udlfb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index 020589a6bf02..2c8364e9b632 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c | |||
@@ -1128,14 +1128,13 @@ static int dlfb_realloc_framebuffer(struct dlfb_data *dev, struct fb_info *info) | |||
1128 | * But with imperfect damage info we may send pixels over USB | 1128 | * But with imperfect damage info we may send pixels over USB |
1129 | * that were, in fact, unchanged - wasting limited USB bandwidth | 1129 | * that were, in fact, unchanged - wasting limited USB bandwidth |
1130 | */ | 1130 | */ |
1131 | new_back = vmalloc(new_len); | 1131 | new_back = vzalloc(new_len); |
1132 | if (!new_back) | 1132 | if (!new_back) |
1133 | pr_info("No shadow/backing buffer allcoated\n"); | 1133 | pr_info("No shadow/backing buffer allocated\n"); |
1134 | else { | 1134 | else { |
1135 | if (dev->backing_buffer) | 1135 | if (dev->backing_buffer) |
1136 | vfree(dev->backing_buffer); | 1136 | vfree(dev->backing_buffer); |
1137 | dev->backing_buffer = new_back; | 1137 | dev->backing_buffer = new_back; |
1138 | memset(dev->backing_buffer, 0, new_len); | ||
1139 | } | 1138 | } |
1140 | } | 1139 | } |
1141 | 1140 | ||