From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from s3.sipsolutions.net ([144.76.43.152]:50442 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756474Ab3HZI6A (ORCPT ); Mon, 26 Aug 2013 04:58:00 -0400 Message-ID: <1377507467.13247.3.camel@jlt4.sipsolutions.net> (sfid-20130826_105804_012090_A2050A40) Subject: Re: [PATCH v2] iwlwifi: mvm: make debugfs write() operations write up to count bytes From: Johannes Berg To: Djalal Harouni Cc: Intel Linux Wireless , "John W. Linville" , Emmanuel Grumbach , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 26 Aug 2013 10:57:47 +0200 In-Reply-To: <1377351353-18588-1-git-send-email-tixxdz@opendz.org> (sfid-20130824_153759_866417_83543693) References: <1377351353-18588-1-git-send-email-tixxdz@opendz.org> (sfid-20130824_153759_866417_83543693) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, 2013-08-24 at 14:35 +0100, Djalal Harouni wrote: > 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. Applied, thanks. johannes