[PATCH 4/4] nl80211: fix of sizeof in vendor event handling

Johannes Berg johannes
Wed Jan 22 06:15:48 PST 2014


On Wed, 2014-01-22 at 16:05 +0200, Ilan Peer wrote:
> From: Max Stepanov <Max.Stepanov at intel.com>
> 
> Fixing sizeof in a validity comparison of nl80211_vendor_cmd_info size.

>  			struct nl80211_vendor_cmd_info *vinfo;
> -			if (nla_len(nl) != sizeof(vinfo)) {
> +			if (nla_len(nl) != sizeof(*vinfo)) {

Funny, I guess this worked on 64-bit because the struct is 8 bytes
long ...

johannes




More information about the Hostap mailing list