radio-bcm2048.c: fix wrong overflow check
Subsystems (2)
PATCH v2 1/1 radio-bcm2048.c: fix wrong overflow check
From: Pali Rohár <[email protected]>
Fix wrong overflow check in radio-bcm2048.
Signed-off-by Pali Rohár <[email protected]>
Signed-off-by Pavel Machek <[email protected]>
Reported-by Dan Carpenter <[email protected]>
---
Nothing in patch changed, just added CCs, and From/Reported-by headers.
drivers/staging/media/bcm2048/radio-bcm2048.c +1 -1
@@ -737,7 +737,7 @@ static int bcm2048_set_region(struct bcm2048_device *bdev, u8 region)int err;u32 new_frequency =0 ; -if (region >ARRAY_SIZE (region_configs)) +if (region >=ARRAY_SIZE (region_configs))return -EINVAL ;mutex_lock (&bdev->mutex);
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html