From: Johan Hedberg Date: Mon, 24 Feb 2014 18:35:07 +0000 (+0200) Subject: Bluetooth: Fix canceling RPA expiry timer X-Git-Tag: v3.15-rc1~113^2~159^2^2~37^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4518bb0fb5eda46a9b118a6fbd9661e62a34a5b6;p=pandora-kernel.git Bluetooth: Fix canceling RPA expiry timer The RPA expiry timer is only initialized inside mgmt.c when we receive the first command from user space. This action also involves setting the HCI_MGMT flag for the first time so that flag acts as a good indicator of whether the delayed work variable can be touched or not. This patch fixes hci_dev_do_close to first check the flag. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed