summaryrefslogtreecommitdiffstats
path: root/block/blk-merge.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 14:09:18 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 14:14:22 -0300
commit3cc2691227203c00cac1d82d6b0772224d5c87b2 (patch)
tree5fca5d9d19b039f8937c14b9c2a04ae16e487d37 /block/blk-merge.c
parente837d85c614e8d6e2d93daed972874ea3a8daec7 (diff)
downloadlinux-3cc2691227203c00cac1d82d6b0772224d5c87b2.tar.gz
linux-3cc2691227203c00cac1d82d6b0772224d5c87b2.tar.bz2
linux-3cc2691227203c00cac1d82d6b0772224d5c87b2.zip
[media] ttusb_dec: avoid the risk of go past buffer
Fixes this smatch warning: drivers/media/usb/ttusb-dec/ttusb_dec.c:243 ttusb_dec_handle_irq() error: buffer overflow 'rc_keys' 26 <= 126 As the RC keys should be enabled previously, via: set_bit(rc_keys[i], input_dev->keybit); It wouldn't go past the buffer in practice. Yet, as bad things may happen when going past buffer, it doesn't hurt adding a check here. While here, fix CodingStyle issues on the routine. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'block/blk-merge.c')
0 files changed, 0 insertions, 0 deletions