aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btusb.c
diff options
context:
space:
mode:
authorMax Chou <max.chou@realtek.com>2019-09-05 13:21:57 +0800
committerMarcel Holtmann <marcel@holtmann.org>2019-09-05 17:27:32 +0200
commitcf0d9a705d81a0f581865cefe0880f29589dd06f (patch)
tree91bc5a4887d722f2a846d8b9386ab6e4900ec967 /drivers/bluetooth/btusb.c
parentBluetooth: mgmt: Use struct_size() helper (diff)
downloadlinux-dev-cf0d9a705d81a0f581865cefe0880f29589dd06f.tar.xz
linux-dev-cf0d9a705d81a0f581865cefe0880f29589dd06f.zip
Bluetooth: btrtl: Fix an issue that failing to download the FW which size is over 32K bytes
Fix the issue that when the FW size is 32K+, it will fail for the download process because of the incorrect index. When firmware patch length is over 32K, "dl_cmd->index" may >= 0x80. It will be thought as "data end" that download process will not complete. However, driver should recount the index from 1. Signed-off-by: Max Chou <max.chou@realtek.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
0 files changed, 0 insertions, 0 deletions