Search Linux Wireless

linux-3.19-rc1 wireless bug report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

drivers/net/wireless/mac80211_hwsim.c:2152:59: warning: loop exit may only be reached after undefined behavior [-Waggressive-loop-optimizations]

Source code is

        for (i = 0; hwsim_world_regdom_custom[i] != param->regd &&
             i < ARRAY_SIZE(hwsim_world_regdom_custom); i++)
            ;

Suggest sanity check i against ARRAY_SIZE *before* using it to index hwsim_world_regdom_custom

Regards

David Binderman

 		 	   		  --
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux