]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/rxrpc/transport.c
[NET] DECNET: Fix whitespace errors.
[linux-2.6-omap-h63xx.git] / net / rxrpc / transport.c
index 465efc86fccf1f253cf93a4e5705017e6e1dd83d..4268b38d92d25e4d66a972e1b498793b6004400b 100644 (file)
@@ -31,7 +31,6 @@
 #endif
 #include <linux/errqueue.h>
 #include <asm/uaccess.h>
-#include <asm/checksum.h>
 #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;
-               msg = kmalloc(sizeof(struct rxrpc_message), GFP_KERNEL);
+               msg = kmemdup(jumbomsg, sizeof(struct rxrpc_message), GFP_KERNEL);
                if (!msg)
                        goto error;
 
-               memcpy(msg, jumbomsg, sizeof(*msg));
                list_add_tail(&msg->link, msgq);
 
                /* adjust the jumbo packet */