projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'lsk-v4.4-17.03-android' of git://git.linaro.org/kernel/linux-linaro-stable.git
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
staging
/
rtl8188eu
/
core
/
rtw_recv.c
diff --git
a/drivers/staging/rtl8188eu/core/rtw_recv.c
b/drivers/staging/rtl8188eu/core/rtw_recv.c
index 110b8c0b6cd7b734de3abfb0cdd35b40912521ec..0f2fe34e14c2f558b970c9cd05d9d45122c11c13 100644
(file)
--- a/
drivers/staging/rtl8188eu/core/rtw_recv.c
+++ b/
drivers/staging/rtl8188eu/core/rtw_recv.c
@@
-1405,6
+1405,9
@@
static int wlanhdr_to_ethhdr(struct recv_frame *precvframe)
ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0)));
}
+ if (!ptr)
+ return _FAIL;
+
memcpy(ptr, pattrib->dst, ETH_ALEN);
memcpy(ptr+ETH_ALEN, pattrib->src, ETH_ALEN);