summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_fb.c b/linux-core/drm_fb.c
index 30b14188..1a0fb79c 100644
--- a/linux-core/drm_fb.c
+++ b/linux-core/drm_fb.c
@@ -121,7 +121,7 @@ int drmfb_probe(struct drm_device *dev, struct drm_framebuffer *fb)
info->fix.type_aux = 0;
info->fix.mmio_start = 0;
info->fix.mmio_len = 0;
- info->fix.line_length = fb->pitch;
+ info->fix.line_length = fb->pitch * ((fb->bits_per_pixel + 1) / 8);
info->flags = FBINFO_DEFAULT;