From: Dan Carpenter Date: Wed, 30 Oct 2013 17:12:51 +0000 (+0300) Subject: libertas: potential oops in debugfs X-Git-Tag: v3.2.54~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3715d06207f877ac6c15b2627515f63e2c59f57;p=pandora-kernel.git libertas: potential oops in debugfs commit a497e47d4aec37aaf8f13509f3ef3d1f6a717d88 upstream. 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed