diff options
Diffstat (limited to 'drivers/atm/he.c')
-rw-r--r-- | drivers/atm/he.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 70667033a568..e90665876c47 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -2739,7 +2739,7 @@ he_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __user *arg) | |||
2739 | spin_lock_irqsave(&he_dev->global_lock, flags); | 2739 | spin_lock_irqsave(&he_dev->global_lock, flags); |
2740 | switch (reg.type) { | 2740 | switch (reg.type) { |
2741 | case HE_REGTYPE_PCI: | 2741 | case HE_REGTYPE_PCI: |
2742 | if (reg.addr < 0 || reg.addr >= HE_REGMAP_SIZE) { | 2742 | if (reg.addr >= HE_REGMAP_SIZE) { |
2743 | err = -EINVAL; | 2743 | err = -EINVAL; |
2744 | break; | 2744 | break; |
2745 | } | 2745 | } |