|
From: Anders J. <and...@us...> - 2002-01-24 16:08:50
|
The following files were modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
bluetooth.c 1.219 1.220=20=20=20=20=20=20=20=20=20=20=20
bnep.c 1.1 Added
bnep_status_proc.c 1.1 Added
bnep_test.c 1.1 Added
btmem.c 1.46 1.47=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Register BNEP-procfile.
* Added initial version of bnep.
* Added bnep tests with UPF testcases.
* btmem init now returns ENOMEM on error.
The diff of the modified file(s):
--- bluetooth.c 2002/01/24 12:43:36 1.219
+++ bluetooth.c 2002/01/24 16:08:47 1.220
@@ -2467,6 +2467,14 @@
procfs_status);
}
=20
+#ifdef CONFIG_BLUETOOTH_PAN
+ procfs_status =3D bnep_status_create_proc_file();
+ if (procfs_status < 0) {
+ D_ERR("Could not register proc file bnep_status %d\n",
+ procfs_status);
+ }
+#endif /* CONFIG_BLUETOOTH_PAN */
+
#endif /* CONFIG_BLUETOOTH_PROC */
=20
#ifdef CONFIG_BLUETOOTH_USE_TCI
@@ -3220,6 +3228,10 @@
proc_unregister(&proc_root, tci_proc_entry.low_ino);
#endif /* CONFIG_BLUETOOTH_USE_TCI */
#endif /* LINUX_VERSION_CODE */
+
+#ifdef CONFIG_BLUETOOTH_PAN
+ bnep_status_remove_proc_file();
+#endif
#endif /* CONFIG_BLUETOOTH_PROC */
=20
DSYS("Bluetooth Driver unregistered\n");
--- btmem.c 2002/01/24 12:42:33 1.46
+++ btmem.c 2002/01/24 16:08:47 1.47
@@ -114,7 +114,7 @@
=20
if(!(bt_buf.head =3D (u8*) kmalloc(BT_BUF_SIZE,GFP_KERNEL))) {
D_ERR("Can't allocate BT memory buffers");
- return -1;
+ return -ENOMEM;
}
=20=09
=20=20=20
|