OSDN Git Service

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)
commitc3f463484bdd0acd15abd5f92399041f79592d06
tree49f90a5c0583dc64f7a21c62d45ce4ea5bb24e59
parentb8a99fb513a63397b43f63f4825371f64a79e821
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: 3fe563249374 ("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