From: Johan Hedberg Date: Tue, 8 Nov 2011 18:40:14 +0000 (+0200) Subject: Bluetooth: Pass full hci_dev struct to mgmt callbacks X-Git-Tag: v3.3-rc1~182^2~545^2~134^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744cf19eadcf4de914394e0eb227f94f4318f5e4;p=pandora-kernel.git Bluetooth: Pass full hci_dev struct to mgmt callbacks The current global pending command list in mgmt.c is racy. Possibly the simplest way to fix it is to have per-hci dev lists instead of a global one (all commands that need a pending struct are hci_dev specific). This way the list can be protected using the already existing per-hci dev lock. To enable this refactoring the first thing that needs to be done is to ensure that the mgmt functions have access to the hci_dev struct (instead of just the dev id). Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed