Message ID | 20221014212235.10770-5-s.shtylyov@omp.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp383705wrs; Fri, 14 Oct 2022 14:28:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4uxMDHb4zpPbBNK1bmT3MscImjLr0o8ljxuNM6t9OjdyHQ9aoTn3GUamGwylCob2ALrTTt X-Received: by 2002:a17:906:fd8d:b0:780:997:8b7b with SMTP id xa13-20020a170906fd8d00b0078009978b7bmr4989297ejb.635.1665782914930; Fri, 14 Oct 2022 14:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665782914; cv=none; d=google.com; s=arc-20160816; b=sx3+E94OBVwxhID+aN6ix2K+iOIWGj1M7AAHWKAzMTo1vohOFmdqvQpJmrMi76bcAC Y3hM8aCMoNrM5do4svu8vGMu2nmt0b11rhvoRcX1XgQVPWAzNfTxSrQaeMXu/6BY16u4 P5m/sPxV8UwnMeoiyV7JD3jh0nD5cHZCYswIyaCoHLtXzodiMddinEpDfunXpBsD0xuj avw2I8P4EdDoENAQFLmrE82iopBLmmD9rJkZQLmz9Ml9R8/qojJqU4sP8/L+//Y+v7mT 8HQ6dL+j0jTy+0m5zXIoKXeYWE0hQp1I2JToB50t2HO75xtOmmjD056hCA85pCXkYZOW Q1Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RqHljShji1WP4HOq+pEnVxdUm1/gKAOSP+LPcQ9+/QE=; b=dvWLXC79gCfa5CGWwqi90b7wocrPcfJW4oJeHwtLZISZOGPq5XEnyMhj+HCepgKjFq XtQtLkOCQw0Kb1ZxA3HJw3kV5ZGx7EoDkJgpaLl3zTzWzk92O5xHZF8CgSrTxgPe3Yyb F9H8s+YmPG/UvO/HNz3uHA3cKTojCFyZDUlHYyTy1pD+yArSNlk+SBo23rNdHvvPmFJ0 VDiDb+K12IY4dOVsQeUo7Z+rNcNXmPLjbGGeRN7mqP+NakpHKRCZqU93ECUdxotUTQcb ZQ6g95kEYO3SnUa/j5m5PfTSbvW4NUB8NuW8O5ql2pjqChuOdXqpIQbAz7dUzLia0o5v D/cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho35-20020a1709070ea300b0078dcbc9a9b1si3629602ejc.737.2022.10.14.14.28.09; Fri, 14 Oct 2022 14:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbiJNVX0 (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 17:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbiJNVXQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 17:23:16 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A06C1DD8A1; Fri, 14 Oct 2022 14:23:09 -0700 (PDT) Received: from localhost.localdomain (178.176.75.138) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Sat, 15 Oct 2022 00:23:01 +0300 From: Sergey Shtylyov <s.shtylyov@omp.ru> To: Oleg Nesterov <oleg@redhat.com>, Brian Cain <bcain@quicinc.com>, <linux-hexagon@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: Andrew Morton <akpm@linux-foundation.org> Subject: [PATCH 04/13] hexagon: ptrace: user_regset_copyin_ignore() always returns 0 Date: Sat, 15 Oct 2022 00:22:26 +0300 Message-ID: <20221014212235.10770-5-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20221014212235.10770-1-s.shtylyov@omp.ru> References: <20221014212235.10770-1-s.shtylyov@omp.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [178.176.75.138] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 10/14/2022 21:00:39 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 173137 [Oct 14 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 500 500 6cc86d8f5638d79810308830d98d6b6279998c49 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.75.138 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: omp.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.75.138 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/14/2022 21:03:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/14/2022 3:23:00 PM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746699985786903451?= X-GMAIL-MSGID: =?utf-8?q?1746699985786903451?= |
Series |
Make user_regset_copyin_ignore() *void*
|
|
Commit Message
Sergey Shtylyov
Oct. 14, 2022, 9:22 p.m. UTC
user_regset_copyin_ignore() always returns 0, so checking its result seems
pointless -- don't do this anymore...
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
---
arch/hexagon/kernel/ptrace.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/hexagon/kernel/ptrace.c b/arch/hexagon/kernel/ptrace.c index 8975f9b4cedf..125f19995b76 100644 --- a/arch/hexagon/kernel/ptrace.c +++ b/arch/hexagon/kernel/ptrace.c @@ -115,10 +115,9 @@ static int genregs_set(struct task_struct *target, /* Ignore the rest, if needed */ if (!ret) - ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, - offsetof(struct user_regs_struct, pad1), -1); - - if (ret) + user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, + offsetof(struct user_regs_struct, pad1), -1); + else return ret; /*