Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 474
b: refs/heads/master
c: f815e81
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 26, 2005
1 parent 5037ed2 commit 9a61a94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66768eb26c471091dc4ea1ed59b4bab7edc3d7bd
refs/heads/master: f815e8182b94f8fb5913b66454b40b484a2f70cc
4 changes: 2 additions & 2 deletions trunk/drivers/video/imsttfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,12 +1287,12 @@ imsttfb_ioctl(struct inode *inode, struct file *file, u_int cmd,
case FBIMSTT_SETCMAPREG:
if (copy_from_user(reg, argp, 8) || reg[0] > (0x1000 - sizeof(reg[0])) / sizeof(reg[0]))
return -EFAULT;
write_reg_le32(((u_int *)par->cmap_regs), reg[0], reg[1]);
write_reg_le32(((u_int __iomem *)par->cmap_regs), reg[0], reg[1]);
return 0;
case FBIMSTT_GETCMAPREG:
if (copy_from_user(reg, argp, 4) || reg[0] > (0x1000 - sizeof(reg[0])) / sizeof(reg[0]))
return -EFAULT;
reg[1] = read_reg_le32(((u_int *)par->cmap_regs), reg[0]);
reg[1] = read_reg_le32(((u_int __iomem *)par->cmap_regs), reg[0]);
if (copy_to_user((void __user *)(arg + 4), &reg[1], 4))
return -EFAULT;
return 0;
Expand Down

0 comments on commit 9a61a94

Please sign in to comment.