radio-bcm2048.c: fix wrong overflow check
authorPali Rohár <pali.rohar@gmail.com>
Tue, 22 Apr 2014 12:57:26 +0000 (15:57 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 May 2014 13:34:08 +0000 (15:34 +0200)
commit43322faf5fc35df218c942742a577d5abe3eaac8
tree96a56c44721e40ee7b33c4ba3a1e82db396a6d84
parent15a0b3fba4e6770a3a6ce488b8de1350cc6a4bed
radio-bcm2048.c: fix wrong overflow check

This patch fixes an off by one check in bcm2048_set_region().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/staging/media/bcm2048/radio-bcm2048.c