diff options
author | Jens Axboe | 2009-12-03 13:49:39 +0100 |
---|---|---|
committer | Jens Axboe | 2009-12-03 13:49:39 +0100 |
commit | 220d0b1dbf78c6417a658c96e571415552d3abac (patch) | |
tree | 70cd3862540c38ea490e7a27c3c7acc35b680234 /arch/arm/plat-pxa/mfp.c | |
parent | cfq-iosched: no dispatch limit for single queue (diff) | |
parent | Linux 2.6.32 (diff) | |
download | kernel-qcow2-linux-220d0b1dbf78c6417a658c96e571415552d3abac.tar.gz kernel-qcow2-linux-220d0b1dbf78c6417a658c96e571415552d3abac.tar.xz kernel-qcow2-linux-220d0b1dbf78c6417a658c96e571415552d3abac.zip |
Merge branch 'master' into for-2.6.33
Diffstat (limited to 'arch/arm/plat-pxa/mfp.c')
-rw-r--r-- | arch/arm/plat-pxa/mfp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-pxa/mfp.c b/arch/arm/plat-pxa/mfp.c index 9405d0379c85..be58f9fe65b0 100644 --- a/arch/arm/plat-pxa/mfp.c +++ b/arch/arm/plat-pxa/mfp.c @@ -207,7 +207,7 @@ unsigned long mfp_read(int mfp) { unsigned long val, flags; - BUG_ON(mfp >= MFP_PIN_MAX); + BUG_ON(mfp < 0 || mfp >= MFP_PIN_MAX); spin_lock_irqsave(&mfp_spin_lock, flags); val = mfpr_readl(mfp_table[mfp].mfpr_off); @@ -220,7 +220,7 @@ void mfp_write(int mfp, unsigned long val) { unsigned long flags; - BUG_ON(mfp >= MFP_PIN_MAX); + BUG_ON(mfp < 0 || mfp >= MFP_PIN_MAX); spin_lock_irqsave(&mfp_spin_lock, flags); mfpr_writel(mfp_table[mfp].mfpr_off, val); |