Although these sizes may be the same it is better to calculate the size of
the source, than of the destiny.
Signed-off-by: Roel Kluin <redacted>
---
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 99bbd28..57959c8 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1234,7 +1234,7 @@ static int do_fscreeninfo_to_user(struct fb_fix_screeninfo *fix,
__u32 data;
int err;
- err = copy_to_user(&fix32->id, &fix->id, sizeof(fix32->id));
+ err = copy_to_user(&fix32->id, &fix->id, sizeof(fix->id));
data = (__u32) (unsigned long) fix->smem_start;
err |= put_user(data, &fix32->smem_start);