Bluetooth: qca: fix info leak when fetching board id
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 1 May 2024 12:34:53 +0000 (14:34 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 May 2024 17:05:33 +0000 (13:05 -0400)
commit0adcf6be1445ed50bfd4a451a7a782568f270197
tree44c21f15bd73fe34a4acc9e45938df97d968ebfd
parentcda0d6a198e2a7ec6f176c36173a57bdd8af7af2
Bluetooth: qca: fix info leak when fetching board id

Add the missing sanity check when fetching the board id to avoid leaking
slab data when later requesting the firmware.

Fixes: a7f8dedb4be2 ("Bluetooth: qca: add support for QCA2066")
Cc: stable@vger.kernel.org # 6.7
Cc: Tim Jiang <quic_tjiang@quicinc.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btqca.c