From f831e90971dc942a9f2fcc918a5739eb6d4ef4c5 Mon Sep 17 00:00:00 2001 From: YOSHIFUJI Hideaki Date: Wed, 12 Dec 2007 03:54:23 +0900 Subject: [MAC80211]: Use htons() where appropriate. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- net/mac80211/wme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/mac80211/wme.c') diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c index 8dbdededdec..455fadc3d84 100644 --- a/net/mac80211/wme.c +++ b/net/mac80211/wme.c @@ -55,7 +55,7 @@ static inline unsigned classify_1d(struct sk_buff *skb, struct Qdisc *qd) /* check there is a valid IP header present */ offset = ieee80211_get_hdrlen_from_skb(skb) + 8 /* LLC + proto */; - if (skb->protocol != __constant_htons(ETH_P_IP) || + if (skb->protocol != htons(ETH_P_IP) || skb->len < offset + sizeof(*ip)) return 0; -- cgit v1.2.3