From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cr2fI-0003hj-6A for barebox@lists.infradead.org; Thu, 23 Mar 2017 13:20:34 +0000 From: Sascha Hauer Date: Thu, 23 Mar 2017 14:20:07 +0100 Message-Id: <20170323132007.26629-1-s.hauer@pengutronix.de> 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] mtd: fix reading data from page that needs cleanup To: Barebox List bXRkX3JlYWTCtCgpIHJldHVybnMgLUVVQ0xFQU4gdG8gaW5kaWNhdGUgdGhhdCBhIHBhZ2UgbmVl ZHMgY2xlYW51cC4KVGhpcyB2YWx1ZSBzaG91bGRuJ3QgYmUgcmV0dXJuZWQgZnJvbSB0aGUgbXRk IHJlYWQgZmlsZSBvcGVyYXRpb24Kc2luY2UgdGhpcyBzaG91bGQgcmV0dXJuIHRoZSBudW1iZXIg b2YgYnl0ZXMgcmVhZC4KClNpZ25lZC1vZmYtYnk6IFNhc2NoYSBIYXVlciA8cy5oYXVlckBwZW5n dXRyb25peC5kZT4KLS0tCiBkcml2ZXJzL210ZC9jb3JlLmMgfCA3ICsrKy0tLS0KIDEgZmlsZSBj aGFuZ2VkLCAzIGluc2VydGlvbnMoKyksIDQgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZHJp dmVycy9tdGQvY29yZS5jIGIvZHJpdmVycy9tdGQvY29yZS5jCmluZGV4IDkwYjgwMGM3YjIuLjRl N2JmZGIzZGEgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMvbXRkL2NvcmUuYworKysgYi9kcml2ZXJzL210 ZC9jb3JlLmMKQEAgLTEwN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