From: Jouni Malinen Date: Tue, 11 Oct 2011 19:08:21 +0000 (+0300) Subject: ath6kl: Fix endpoint_stats debugfs buffer length calculation X-Git-Tag: v3.3-rc1~182^2~261^2~200^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=171693292ec733ecb96734370ddfe0d9f73e920f;p=pandora-kernel.git ath6kl: Fix endpoint_stats debugfs buffer length calculation The previous version did not really make much sense and the theoretical maximum length would be a bit longer. Calculate the length more accurately. In addition, there is no need to clear the buffer, so use kmalloc instead of kzalloc. For bonus points, add the forgotten cred_rpt_from_other value to the file. Reported-by: Joe Perches Signed-off-by: Jouni Malinen Signed-off-by: Kalle Valo --- Reading git-diff-tree failed