From 01ca2e9df902aeb60c246abd54fcea22006bbc42 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Mon, 10 Nov 2014 18:11:39 -0500 Subject: [PATCH] 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 --- drivers/staging/rtl8723au/core/rtw_xmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }