From: Mat Martineau Date: Thu, 17 May 2012 23:20:14 +0000 (-0700) Subject: Bluetooth: Free allocated ERTM SREJ list if init fails X-Git-Tag: v3.6-rc1~125^2~57^2~290^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc9affcb776b75f6d3e5d69d6e2a679407854f1;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed