[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] hci_inquiry(...)



in hci_inquiry(...) in hci.c:

results to inquiries are stored in the inq_res. the size allocated for
the (the at) most num_resp results calculates to

inq_res = (inquiry_results*) kmalloc( sizeof(inquiry_results)
                                      + 6 * num_resp, GFP_ATOMIC );

i suppose you mean:

  sizeof(inquiry_results) * num_resp + 6

or:

  (sizeof(inquiry_results) + 6 ) * num_resp

which one? what´s the +6 for?

cheers,
olli*

-- 
Oliver Kasten                                phone: +41/ 1/ 63-2 06 63
ETH-Zurich                                     fax: +41/ 1/ 63-2 16 59
Haldeneggsteig 4, IFW D48.1                  email: kasten@xxxxxxx.ch
CH-8092 Zuerich, Switzerland           http://www.inf.ethz.ch/~kasten/
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com