OSDN Git Service

Fix l2cu_initialize_fixed_ccb() to return only initialized entries
authorPavlin Radoslavov <pavlin@google.com>
Tue, 1 Mar 2016 20:50:26 +0000 (12:50 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 2 Mar 2016 19:20:05 +0000 (11:20 -0800)
commit62778f6eb0f75cd4a31ab7d5b9fdf553ceed561b
treeb42d9d63b0c36fafd8bb77d6f89457264e68200d
parentcb090050e3f45905a33f595cee9e12b3e2c66e86
Fix l2cu_initialize_fixed_ccb() to return only initialized entries

Update the l2cu_initialize_fixed_ccb() implementation so
it returns only entries that are properly initialized.
In some complex scenarios, the p_lcb->p_fixed_ccbs[] array
might contain an entry that has been released by l2cu_release_ccb(),
and such entry cannot be reused as-is.

Bug: 26927945
Change-Id: I42d42926cc6da6b8be662781545753c36b75968e
stack/l2cap/l2c_utils.c