From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SHOhF-0002tX-DG for barebox@lists.infradead.org; Tue, 10 Apr 2012 00:12:34 +0000 Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp3-g21.free.fr (Postfix) with ESMTP id 613CDA6103 for ; Tue, 10 Apr 2012 02:12:27 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 10 Apr 2012 02:12:25 +0200 Message-Id: <1334016745-7914-1-git-send-email-eric@eukrea.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] cfi_flash_intel: fix buffer write for width > 2 To: barebox@lists.infradead.org VGhpcyBwYXRjaCBkb2VzIHdoYXQgdGhlIGNvbW1lbnQgdGVsbHMgdGhlIGNvZGUgc2hvdWxkIGRv LgpBY3R1YWwgY29kZSBmYWlscyBmb3Igd2lkdGggPSA0ICh2ZXJpZmllZCA6IG9ubHkgaGFsZiBv ZiB0aGUgYnVmZmVyCmlzIGNvcGllZCBiZWNhdXNlIGxlbiBpcyBkaXZpZGVkIGJ5IDggaW5zdGVh ZCBvZiA0KSBhbmQgOCB3aGVyZSBsZW4Kd2lsbCBiZSBkaXZpZGVkIGJ5IDEyOC4KVGhlIGJ1ZyB3 YXMgaW50cm9kdWNlZCBpbiAzZDNjMTNkOGY4MjM4ZDBlZDZlM2UyMzg0MTczN2RlNTNiMmM0MjRm CgpTaWduZWQtb2ZmLWJ5OiBFcmljIELDqW5hcmQgPGVyaWNAZXVrcmVhLmNvbT4KLS0tCiBkcml2 ZXJzL25vci9jZmlfZmxhc2hfaW50ZWwuYyB8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