projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c46bf
)
wireless:rtlwifi: replaced kmalloc+memcpy with kmemdup
author
Andrei Epure
<epure.andrei@gmail.com>
Sun, 10 Mar 2013 13:09:47 +0000
(15:09 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 11 Mar 2013 19:06:14 +0000
(15:06 -0400)
Signed-off-by: Andrei Epure <epure.andrei@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rtlwifi/usb.c
b/drivers/net/wireless/rtlwifi/usb.c
index
156b527
..
b5c80b5
100644
(file)
--- a/
drivers/net/wireless/rtlwifi/usb.c
+++ b/
drivers/net/wireless/rtlwifi/usb.c
@@
-224,10
+224,9
@@
static void _usb_writeN_sync(struct rtl_priv *rtlpriv, u32 addr, void *data,
u8 *buffer;
wvalue = (u16)(addr & 0x0000ffff);
- buffer = km
alloc(
len, GFP_ATOMIC);
+ buffer = km
emdup(data,
len, GFP_ATOMIC);
if (!buffer)
return;
- memcpy(buffer, data, len);
usb_control_msg(udev, pipe, request, reqtype, wvalue,
index, buffer, len, 50);