commit | 9dc9affcb776b75f6d3e5d69d6e2a679407854f1 | [log] [tgz] |
---|---|---|
author | Mat Martineau <mathewm@codeaurora.org> | Thu May 17 16:20:14 2012 -0700 |
committer | Johan Hedberg <johan.hedberg@intel.com> | Tue Jun 05 06:34:02 2012 +0300 |
tree | 5ad4812b587ef142760c1b586b4d07717cb69e38 | |
parent | a8c5fb1afe0b2661a8be78e340f86e6a627f9b32 [diff] |
Bluetooth: Free allocated ERTM SREJ list if init fails If the ERTM SREJ list is properly allocated but the retransmit list allocation fails, the SREJ list must be freed before returning from l2cap_ertm_init. l2cap_chan_del will not clean up the SREJ list if l2cap_ertm_init returns a failure code. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>