Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98230
b: refs/heads/master
c: 28e84ab
h: refs/heads/master
v: v3
  • Loading branch information
Robert T. Johnson authored and David S. Miller committed Jun 17, 2008
1 parent 168f0cb commit 7ac2322
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 7e903c2ae36efb526eacab3b25d00e90424bd8a8
refs/heads/master: 28e84ab3abafb0f9c9573993626abe6ca3fa8eb1
7 changes: 6 additions & 1 deletion trunk/drivers/atm/he.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,10 +2845,15 @@ he_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __user *arg)
if (copy_from_user(&reg, arg,
sizeof(struct he_ioctl_reg)))
return -EFAULT;

spin_lock_irqsave(&he_dev->global_lock, flags);
switch (reg.type) {
case HE_REGTYPE_PCI:
if (reg.addr < 0 || reg.addr >= HE_REGMAP_SIZE) {
err = -EINVAL;
break;
}

reg.val = he_readl(he_dev, reg.addr);
break;
case HE_REGTYPE_RCM:
Expand Down

0 comments on commit 7ac2322

Please sign in to comment.