|
From: Mattias A. <mat...@us...> - 2001-06-06 14:57:44
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
btmem.c 1.41 1.42=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Added default values of bt_buf struct
The diff of the modified file(s):
--- btmem.c 2001/04/25 16:49:24 1.41
+++ btmem.c 2001/06/06 14:57:44 1.42
@@ -102,7 +102,7 @@
=20
/****************** LOCAL VARIABLE DECLARATION SECTION *******************=
***/
=20
-static bt_buf_main bt_buf;
+static bt_buf_main bt_buf =3D {NULL, NULL, NULL, NULL, NULL, 0, 0, 0};
=20
/****************** FUNCTION DEFINITION SECTION **************************=
***/
=20
@@ -133,6 +133,7 @@
DSYS("Shutting down BTMEM\n");
/* FIXME - Check that the stack is not in use */
/* Deallocate memory area */
+ if (bt_buf.head)
kfree(bt_buf.head);
bt_buf.head =3D NULL;
}
|