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
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
net
/
rxrpc
/
transport.c
diff --git
a/net/rxrpc/transport.c
b/net/rxrpc/transport.c
index
465efc8
..
4268b38
100644
(file)
--- a/
net/rxrpc/transport.c
+++ b/
net/rxrpc/transport.c
@@
-31,7
+31,6
@@
#endif
#include <linux/errqueue.h>
#include <asm/uaccess.h>
#endif
#include <linux/errqueue.h>
#include <asm/uaccess.h>
-#include <asm/checksum.h>
#include "internal.h"
struct errormsg {
#include "internal.h"
struct errormsg {
@@
-381,11
+380,10
@@
static int rxrpc_incoming_msg(struct rxrpc_transport *trans,
/* allocate a new message record */
ret = -ENOMEM;
/* allocate a new message record */
ret = -ENOMEM;
- msg = km
alloc(
sizeof(struct rxrpc_message), GFP_KERNEL);
+ msg = km
emdup(jumbomsg,
sizeof(struct rxrpc_message), GFP_KERNEL);
if (!msg)
goto error;
if (!msg)
goto error;
- memcpy(msg, jumbomsg, sizeof(*msg));
list_add_tail(&msg->link, msgq);
/* adjust the jumbo packet */
list_add_tail(&msg->link, msgq);
/* adjust the jumbo packet */