OSDN Git Service

staging: brcm80211: bugfix for exception on Sparc platforms
authorRoland Vossen <rvossen@broadcom.com>
Tue, 23 Aug 2011 12:13:58 +0000 (14:13 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:10:14 +0000 (13:10 -0700)
commit49d468f64d59016030c2835a423833e7b45ccce5
tree5f446a8aa1aeb5ba2fc823face2455d0eae74556
parent183eeb985a2cdbf37c7850c5e8e99cc1cc26901f
staging: brcm80211: bugfix for exception on Sparc platforms

Problem would pop up during driver load on a Sun Fire V120 and manifested
itself as an exception. This was caused by int* pointers provided to memcpy()
that were not aligned on an int boundary. The pointer type provided to
memcpy() is used by the compiler for optimization purposes. Fix was to cast
the int* pointers to void* pointers.

Bernhard R. Link and David S. Miller provided valuable feedback, thanks gents.

Reviewed-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/main.c