git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
net
/
rxrpc
/
transport.c
diff --git
a/net/rxrpc/transport.c
b/net/rxrpc/transport.c
index
465efc8
..
dbe6105
100644
(file)
--- a/
net/rxrpc/transport.c
+++ b/
net/rxrpc/transport.c
@@
-68,10
+68,11
@@
int rxrpc_create_transport(unsigned short port,
_enter("%hu", port);
_enter("%hu", port);
- trans = k
z
alloc(sizeof(struct rxrpc_transport), GFP_KERNEL);
+ trans = k
m
alloc(sizeof(struct rxrpc_transport), GFP_KERNEL);
if (!trans)
return -ENOMEM;
if (!trans)
return -ENOMEM;
+ memset(trans, 0, sizeof(struct rxrpc_transport));
atomic_set(&trans->usage, 1);
INIT_LIST_HEAD(&trans->services);
INIT_LIST_HEAD(&trans->link);
atomic_set(&trans->usage, 1);
INIT_LIST_HEAD(&trans->services);
INIT_LIST_HEAD(&trans->link);
@@
-311,12
+312,13
@@
static int rxrpc_incoming_msg(struct rxrpc_transport *trans,
_enter("");
_enter("");
- msg = k
z
alloc(sizeof(struct rxrpc_message), GFP_KERNEL);
+ msg = k
m
alloc(sizeof(struct rxrpc_message), GFP_KERNEL);
if (!msg) {
_leave(" = -ENOMEM");
return -ENOMEM;
}
if (!msg) {
_leave(" = -ENOMEM");
return -ENOMEM;
}
+ memset(msg, 0, sizeof(*msg));
atomic_set(&msg->usage, 1);
list_add_tail(&msg->link,msgq);
atomic_set(&msg->usage, 1);
list_add_tail(&msg->link,msgq);