mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] kmemdup: some users
Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1a2f67b459
commit
52978be636
7 changed files with 13 additions and 22 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue