|
From: Peter K. <pk...@us...> - 2001-09-20 10:11:10
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
bluetooth.c 1.197 1.198=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Do not check the pid when unregistering ttyBTC.
The diff of the modified file(s):
--- bluetooth.c 2001/09/13 15:53:38 1.197
+++ bluetooth.c 2001/09/20 10:11:08 1.198
@@ -2933,11 +2933,8 @@
if (line =3D=3D BT_NBR_PORTS-BT_NBR_CTRLPORTS) {
if (--NBR_CTRL_FDS !=3D 0)
return 0; /* still more open fd:s on ttyBTC */
- }
-
- /* Check that the pid closing is the one that opened the tty */
- if (current->pid !=3D bt_ctrl.session[line].pid)
- {
+ } else if (current->pid !=3D bt_ctrl.session[line].pid) {
+ /* The pid closing the tty is not the one that opened it */
BT_DRIVER(__FUNCTION__ ": Invalid pid\n");
return -1;
}
|