]> 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)
commit19b297d06757af15d5bb9c6165fe9fe03f021fbb
tree49f90a5c0583dc64f7a21c62d45ce4ea5bb24e59
parenta8f742cf34a0e721318226f35171fa95a16e0725
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: f675ecc73d60 ("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