Skip to content
Commit 0e9d84ea authored by Djalal Harouni's avatar Djalal Harouni Committed by Johannes Berg
Browse files

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: default avatarDjalal Harouni <tixxdz@opendz.org>
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6a524f48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment