Hi Johan, * Johan Hedberg <johan.hedberg@xxxxxxxxx> [2012-10-19 20:10:46 +0300]: > From: Johan Hedberg <johan.hedberg@xxxxxxxxx> > > The mgmt_read_index_list uses one loop to calculate the max needed size > of its response with the help of an upper-bound of the controller count. > The second loop is more strict as it checks for HCI_SETUP (which might > have gotten set after the first loop) and could result in some indexes > being skipped. Because of this the function needs to readjust the event > length and index count after filling in the response array. > > Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > --- > net/bluetooth/mgmt.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) Patch has been applied to bluetooth.git. Thanks. Gustavo -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html