From: Dan Carpenter Date: Wed, 30 Oct 2013 17:12:51 +0000 (+0300) Subject: libertas: potential oops in debugfs X-Git-Tag: v3.13-rc1~33^2~27^2^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a497e47d4aec37aaf8f13509f3ef3d1f6a717d88;p=pandora-kernel.git libertas: potential oops in debugfs If we do a zero size allocation then it will oops. Also we can't be sure the user passes us a NUL terminated string so I've added a terminator. This code can only be triggered by root. Reported-by: Nico Golde Reported-by: Fabian Yamaguchi Signed-off-by: Dan Carpenter Acked-by: Dan Williams Signed-off-by: John W. Linville --- Reading git-diff-tree failed