From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XOtOp-0002Tz-Cp for barebox@lists.infradead.org; Tue, 02 Sep 2014 19:05:52 +0000 Received: by mail-we0-f176.google.com with SMTP id q59so7432681wes.35 for ; Tue, 02 Sep 2014 12:05:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1409684561-19894-1-git-send-email-poggi.raph@gmail.com> References: <1409684561-19894-1-git-send-email-poggi.raph@gmail.com> From: =?UTF-8?Q?Rapha=C3=ABl_Poggi?= Date: Tue, 2 Sep 2014 21:04:48 +0200 Message-ID: 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: Re: [PATCH] mtd: atmel_nand: fix null pointer dereference To: barebox@lists.infradead.org SSB0aGluayB0aGlzIHBhdGNoIGNvdWxkIGJlIHNxdWFzaCBpbiBbUEFUQ0ggdjMgMy8zXSBtdGQ6 IGF0bWVsX25hbmQ6CmFkZCBzdXBwb3J0IGZvciBkZXZpY2UgdHJlZQoKMjAxNC0wOS0wMiAyMTow MiBHTVQrMDI6MDAgUmFwaGHDq2wgUG9nZ2kgPHBvZ2dpLnJhcGhAZ21haWwuY29tPjoKPiBXZSBu ZWVkIHRvIGFsbG9jYXRlIHBkYXRhIGZvciBkZXZpY2UgdHJlZSBhbmQgbm9uIGRldmljZSB0cmVl IHByb2JlLgo+IEluIGRldmljZSB0cmVlIHByb2JlIHdlIHVzZSBwZGF0YSB0byBmaWxsIHN0cnVj dHVyZSBtZW1iZXIgd2l0aCBkdHMgZGF0YS4KPiBJbiBub24gZGV2aWNlIHRyZWUgcHJvYmUgd2Ug dXNlIHRoZSBwZGF0YSB0byBoYW5kbGUgcG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gICAgICAgICAgIGlmIChyZXMpCj4g ICAgICAgICAgICAgICAgICAgICAgICAgZ290byBlcnJfbm9fY2FyZDsKPiAgICAgICAgIH0gZWxz ZSB7Cj4gLSAgICAgICAgICAgICAgIHBkYXRhID0ga3phbGxvYyhzaXplb2Yoc3RydWN0IGF0bWVs X25hbmRfZGF0YSksIEdGUF9LRVJORUwpOwo+IC0gICAgICAgICAgICAgICBpZiAoIXBkYXRhKQo+ IC0gICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtRU5PTUVNOwo+IC0KPiAgICAgICAgICAg ICAgICAgbWVtY3B5KGhvc3QtPmJvYXJkLCBkZXYtPnBsYXRmb3JtX2RhdGEsIHNpemVvZihzdHJ1 Y3QgYXRtZWxfbmFuZF9kYXRhKSk7Cj4gICAgICAgICB9Cj4KPiAtLQo+IDEuOC4zLjIKPgoKX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYmFyZWJveCBtYWls aW5nIGxpc3QKYmFyZWJveEBsaXN0cy5pbmZyYWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRl YWQub3JnL21haWxtYW4vbGlzdGluZm8vYmFyZWJveAo=