linux-3.19-rc1 wireless bug report

From: David Binderman <hidden>
Date: 2014-12-22 11:46:11

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

 		 	   		  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help