Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7007>
22 lines
898 B
Diff
22 lines
898 B
Diff
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
|
|
index 3e6371dc9038..a3ccb86baec6 100755
|
|
--- a/drivers/video/fbmem.c
|
|
+++ b/drivers/video/fbmem.c
|
|
@@ -1096,9 +1096,15 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
|
|
ret = copy_to_user(argp, &fix, sizeof(fix)) ? -EFAULT : 0;
|
|
break;
|
|
case FBIOPUTCMAP:
|
|
- if (copy_from_user(&cmap, argp, sizeof(cmap)))
|
|
+ printk(KERN_ERR "PMOS DEBUG: calling copy_from_user...\n");
|
|
+ if (copy_from_user(&cmap, argp, sizeof(cmap))) {
|
|
+ printk(KERN_ERR "PMOS DEBUG: copy_from_user failed!\n");
|
|
return -EFAULT;
|
|
+ }
|
|
+ printk(KERN_ERR "PMOS DEBUG: copy_from_user ok!\n");
|
|
+ printk(KERN_ERR "PMOS DEBUG: calling fb_set_user_cmap...\n");
|
|
ret = fb_set_user_cmap(&cmap, info);
|
|
+ printk(KERN_ERR "PMOS DEBUG: fb_set_user_cmap returned %d\n", ret);
|
|
break;
|
|
case FBIOGETCMAP:
|
|
if (copy_from_user(&cmap, argp, sizeof(cmap)))
|