From: Jes Sorensen Date: Mon, 10 Nov 2014 23:11:39 +0000 (-0500) Subject: staging: rtl8723au: rtw_put_snap23a(): Use put_unaligned to set protocol X-Git-Tag: v3.19-rc1~66^2~228 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=01ca2e9df902aeb60c246abd54fcea22006bbc42;p=karo-tx-linux.git staging: rtl8723au: rtw_put_snap23a(): Use put_unaligned to set protocol Reported-by: Arend van Spriel Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c index 18a9f34cd94d..f8b124322fc3 100644 --- a/drivers/staging/rtl8723au/core/rtw_xmit.c +++ b/drivers/staging/rtl8723au/core/rtw_xmit.c @@ -1247,7 +1247,7 @@ s32 rtw_put_snap23a(u8 *data, u16 h_proto) ether_addr_copy(data, rfc1042_header); data += ETH_ALEN; - *(__be16 *)data = htons(h_proto); + put_unaligned_be16(h_proto, data); return ETH_ALEN + sizeof(u16); }