OSDN Git Service

Bluetooth: btbcm: Drop upper nibble version check from btbcm_initialize()
authorHans de Goede <hdegoede@redhat.com>
Fri, 17 Apr 2020 17:15:25 +0000 (19:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Apr 2020 17:43:58 +0000 (19:43 +0200)
commit3fef10ec321ced8e75cd0a28616402401cbbcaf4
tree089b0a4bfa516b3383d732102b8941498604781d
parent44dd5efc97dae0dc09ea9316597826c8b0fd1578
Bluetooth: btbcm: Drop upper nibble version check from btbcm_initialize()

btbcm_initialize() must either return an error; or fill the passed in
fw_name, otherwise we end up passing uninitialized stack memory to
request_firmware().

Since we have a fallback hw_name of "BCM" not having a known version
in the subver field does not matter, drop the check so that we always
fill the passed in fw_name.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btbcm.c