From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtpbg480.qq.com ([59.36.132.97] helo=qq.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEU2j-0003mF-7I for barebox@lists.infradead.org; Tue, 23 Feb 2021 09:31:46 +0000 From: "=?ISO-8859-1?B?amFtZXN6eGo=?=" Mime-Version: 1.0 Date: Tue, 23 Feb 2021 17:31:22 +0800 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] extend the test in bbu_std_file_handler() to also check for -ENOTSUP. To: =?ISO-8859-1?B?YmFyZWJveA==?= extend the test in bbu_std_file_handler() to also check for -ENOTSUP. Signed-off-by: zhengxiaojun --- common/bbu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/bbu.c b/common/bbu.c index 1279d56..ee9f78e 100644 --- a/common/bbu.c +++ b/common/bbu.c @@ -313,7 +313,7 @@ static int bbu_std_file_handler(struct bbu_handler *handler, return fd; ret = protect(fd, data->len, 0, 0); - if (ret && ret != -ENOSYS) { + if (ret && (ret != -ENOSYS) && (ret != -ENOTSUPP)) { printf("unprotecting %s failed with %s\n", data->devicefile, strerror(-ret)); goto err_close; -- 2.7.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox