From: Eliad Peller Date: Wed, 14 Mar 2012 14:15:02 +0000 (+0200) Subject: mac80211: add NULL terminator to debugfs_netdev write buf X-Git-Tag: v3.4-rc1~177^2~48^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada577c12f7cd8851c999a9f19f62df06df7c39a;p=pandora-kernel.git mac80211: add NULL terminator to debugfs_netdev write buf Some debugfs write functions call kstrto* functions, which assume the string is null-terminated. Make it valid by changing ieee80211_if_write() to use static buffer instead of allocating one, and set the last char to NULL. (The write functions try to parse some integer/mac address, so 64 bytes buffer should be enough) Signed-off-by: Eliad Peller Signed-off-by: John W. Linville --- Reading git-diff-tree failed