public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drivers: staging: rtl8192u: ieee80211: ieee80211_softmac.c: auth parse error code byte order fix
@ 2015-05-13  3:55 Tolga Ceylan
  2015-05-24  2:53 ` tolga ceylan
  0 siblings, 1 reply; 6+ messages in thread
From: Tolga Ceylan @ 2015-05-13  3:55 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Cristina Opriceana, Haneen Mohammed,
	Greg Donald, Aya Mahfouz, Benoit Taine, Paul Gortmaker, devel,
	linux-kernel
  Cc: Tolga Ceylan

Error code returned from auth_parse() should in cpu byte order.

Signed-off-by: Tolga Ceylan <tolga.ceylan@gmail.com>
---
 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index d2e8b12..0cf0e89 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -1558,7 +1558,7 @@ static inline u16 auth_parse(struct sk_buff *skb, u8 **challenge, int *chlen)
 		}
 	}
 
-	return cpu_to_le16(a->status);
+	return le16_to_cpu(a->status);
 
 }
 
-- 
2.4.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-30 12:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13  3:55 [PATCH 1/1] drivers: staging: rtl8192u: ieee80211: ieee80211_softmac.c: auth parse error code byte order fix Tolga Ceylan
2015-05-24  2:53 ` tolga ceylan
2015-05-24  8:13   ` Sudip Mukherjee
2015-05-25 15:31   ` Paul Gortmaker
2015-05-25 16:31     ` Dan Carpenter
2015-05-30 12:19       ` Tolga Ceylan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox