From: Peter Hurley Date: Mon, 10 Feb 2014 01:59:10 +0000 (-0500) Subject: Bluetooth: Verify dlci not in use before rfcomm_dev create X-Git-Tag: v3.15-rc1~113^2~159^2^2~130^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c10a848cea89a8f0418fa0efec33c4e8507aab4b;p=pandora-kernel.git Bluetooth: Verify dlci not in use before rfcomm_dev create Only one session/channel combination may be in use at any one time. However, the failure does not occur until the tty is opened (in rfcomm_dlc_open()). Because these settings are actually bound at rfcomm device creation (via RFCOMMCREATEDEV ioctl), validate and fail before creating the rfcomm tty device. Signed-off-by: Peter Hurley Tested-By: Alexander Holler Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed