]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: Fix crash due to pointers being "confusing"
authorBen Hutchings <ben@decadent.org.uk>
Wed, 20 Apr 2016 23:19:25 +0000 (00:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:53:47 +0000 (17:53 -0700)
commit4f74acc69df720bec0bf1239064290f8fcfdb723
tree49f90a5c0583dc64f7a21c62d45ce4ea5bb24e59
parent1e7a0ddd39eabf0bca652953f1ec831c83bd3664
staging: rtl8192u: Fix crash due to pointers being "confusing"

There's no net_device stashed in skb->cb, there's a net_device * there.

To make it *really* clear, also change the write of the dev pointer
into skb->cb from a memcpy() to an assignment.

Fixes: 50faf1be5bb8 ("staging: rtl8192u: r8192U_core.c: Cleaning up ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c