From: Johannes Berg Date: Thu, 6 Dec 2012 16:03:17 +0000 (+0100) Subject: regulatory: don't write past array when intersecting rules X-Git-Tag: v3.9-rc1~139^2~242^2^2~156 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a57fff0c178febbe28669a0ef68a8e3460a7589;p=pandora-kernel.git regulatory: don't write past array when intersecting rules When intersecting rules, we count first to know how many rules need to be allocated, and then do the intersection into the allocated array. However, the code doing this writes past the end of the array because it attempts to do all intersections. Make it stop when the right number of rules has been reached. Acked-by: Luis R. Rodriguez Signed-off-by: Johannes Berg --- Reading git-diff-tree failed