]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: off by one in rtl8723b_parse_firmware()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Apr 2015 15:51:35 +0000 (18:51 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Apr 2015 23:05:30 +0000 (01:05 +0200)
commit2af2e174bff27ed5d863ba3c2bf98c7db1c96960
tree733e51f7c027690bfda195d0e1921c32d0132253
parent7a6bd2c291c78cfa6ec1dc80f8c3ab03e888136e
Bluetooth: btusb: off by one in rtl8723b_parse_firmware()

The ">" should be ">=" so that we don't read past the end of the array.

Fixes: 9d9a113e3695 ('Bluetooth: btusb: Add Realtek 8723A/8723B/8761A/8821A support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c