From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.megiteam.pl ([31.186.83.105]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwnIz-0003L2-U4 for barebox@lists.infradead.org; Mon, 03 Sep 2018 11:46:15 +0000 From: Marcin Niestroj Date: Mon, 3 Sep 2018 13:44:29 +0200 Message-Id: <20180903114452.4611-5-m.niestroj@grinn-global.com> In-Reply-To: <20180903114452.4611-1-m.niestroj@grinn-global.com> References: <20180903112408.2086-1-m.niestroj@grinn-global.com> <20180903114452.4611-1-m.niestroj@grinn-global.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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 14/18] crypto: caam - fix endless loop when DECO acquire fails To: barebox@lists.infradead.org Cc: Marcin Niestroj UGljayBjb21taXQgMjI1ZWNlM2U3ZGFkNGNmYzQ0Y2NhMzhjZTdhM2E4MGYyNTVlYThmMSBmcm9t IExpbnV4CnVwc3RyZWFtLgoKICAgIGNyeXB0bzogY2FhbSAtIGZpeCBlbmRsZXNzIGxvb3Agd2hl biBERUNPIGFjcXVpcmUgZmFpbHMKCiAgICBJbiBjYXNlIERFQ08wIGNhbm5vdCBiZSBhY3F1aXJl ZCAtIGkuZS4gcnVuX2Rlc2NyaXB0b3JfZGVjbzAoKSBmYWlscwogICAgd2l0aCAtRU5PREVWLCBj YWFtX3Byb2JlKCkgZW50ZXJzIGFuIGVuZGxlc3MgbG9vcDoKCiAgICBydW5fZGVzY3JpcHRvcl9k ZWNvMAogICAgICAgICAgICByZXQgLUVOT0RFVgogICAgICAgICAgICAtPiBpbnN0YW50aWF0ZV9y bmcKICAgICAgICAgICAgICAgICAgICAtRU5PREVWLCBvdmVyd3JpdHRlbiBieSAtRUFHQUlOCiAg ICAgICAgIC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