summaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2024-05-01 08:37:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-17 12:15:11 +0200
commitd1f768214320852766a60a815a0be8f14fba0cc3 (patch)
tree4701efe166a5be5bc56659cc754279d572637f45 /lib/string_helpers.c
parenta571044cc0a0c944e7c12237b6768aeedd7480e1 (diff)
Bluetooth: qca: fix firmware check error path
commit 40d442f969fb1e871da6fca73d3f8aef1f888558 upstream. A recent commit fixed the code that parses the firmware files before downloading them to the controller but introduced a memory leak in case the sanity checks ever fail. Make sure to free the firmware buffer before returning on errors. Fixes: f905ae0be4b7 ("Bluetooth: qca: add missing firmware sanity checks") Cc: stable@vger.kernel.org # 4.19 Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions