From: Marcel Holtmann Date: Fri, 4 May 2007 22:36:10 +0000 (+0200) Subject: [Bluetooth] Check that device is in rfcomm_dev_list before deleting X-Git-Tag: v2.6.22-rc1~822^2~2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f2a45fa1ba33147fd6cc8ae546188504a822cd;p=pandora-kernel.git [Bluetooth] Check that device is in rfcomm_dev_list before deleting If RFCOMM_RELEASE_ONHUP flag is on and rfcomm_release_dev is called before connection is closed, rfcomm_dev is deleted twice from the rfcomm_dev_list and refcount is messed up. This patch adds a check before deleting device that the device actually is listed. Signed-off-by: Ville Tervo Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed