aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan+linaro@kernel.org> 2024-05-01 08:37:40 +0200
committerGravatar Luiz Augusto von Dentz <luiz.von.dentz@intel.com> 2024-05-03 13:05:55 -0400
commit40d442f969fb1e871da6fca73d3f8aef1f888558 (patch)
tree27e882690137242b1fa14724924bbc55c8e6c274 /net/ipv4
parentBluetooth: l2cap: fix null-ptr-deref in l2cap_chan_timeout (diff)
downloadlinux-40d442f969fb1e871da6fca73d3f8aef1f888558.tar.gz
linux-40d442f969fb1e871da6fca73d3f8aef1f888558.tar.bz2
linux-40d442f969fb1e871da6fca73d3f8aef1f888558.zip
Bluetooth: qca: fix firmware check error path
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>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions