mirror of
https://github.com/torvalds/linux.git
synced 2026-09-15 15:01:08 -04:00
[PATCH] kmemdup: some users
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
1a2f67b459
commit
52978be636
@@ -381,11 +381,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 */
|
||||
|
||||
Reference in New Issue
Block a user