From: Djalal Harouni Date: Sat, 24 Aug 2013 13:35:53 +0000 (+0100) Subject: iwlwifi: mvm: make debugfs write() operations write up to count bytes X-Git-Tag: v3.13-rc1~105^2~55^2^2~52^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e9d84ea89a588a6ed7b4e9809cd4a8af0bb6a88;p=pandora-kernel.git iwlwifi: mvm: make debugfs write() operations write up to count bytes Some debugfs write() operations of the MVM Firmware will ignore the count argument, and will copy more bytes than what was specified. Fix this by getting the right count of bytes. This will honor restrictions put on the number of bytes to write and avoid strcmp() calls on garbage data. Signed-off-by: Djalal Harouni Reviewed-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- Reading git-diff-tree failed