]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Free allocated ERTM SREJ list if init fails
authorMat Martineau <mathewm@codeaurora.org>
Thu, 17 May 2012 23:20:14 +0000 (16:20 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:02 +0000 (06:34 +0300)
commit4374cd61c9d323c3b7af1677ed4297df5189ae9c
tree5ad4812b587ef142760c1b586b4d07717cb69e38
parent28be2cf91964771988d6787d51f61ee37b0b4907
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>
net/bluetooth/l2cap_core.c