From: Luis R. Rodriguez Date: Mon, 28 Oct 2013 02:19:46 +0000 (+0100) Subject: cfg80211: fix parsing when db.txt ends on a rule X-Git-Tag: v3.14-rc1~94^2~334^2^2~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae689390b09d1f5b274c83dbbd3836fedb692e31;p=thirdparty%2Fkernel%2Flinux.git cfg80211: fix parsing when db.txt ends on a rule If genregdb.awk assumes the file will end with an extra empty line or a comment line. This is could not be true so just address this. Signed-off-by: Luis R. Rodriguez Acked-by: John W. Linville Signed-off-by: Johannes Berg --- diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk index 42cd3fd2aa14e..9a8217d2a9088 100644 --- a/net/wireless/genregdb.awk +++ b/net/wireless/genregdb.awk @@ -143,6 +143,8 @@ active && /^[ \t]*$/ { } END { + if (active) + print_tail_country() print regdb "};" print "" print "int reg_regdb_size = ARRAY_SIZE(reg_regdb);"