Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2220354ybb; Mon, 30 Mar 2020 01:46:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu4iTLdvpS6u0nnp4ByeLp/6K6q4uEfUQZ4/yPND1w8MiCA0YUk20oeUwQeFMunLn0cHITW X-Received: by 2002:aca:aa0a:: with SMTP id t10mr6384852oie.38.1585557981214; Mon, 30 Mar 2020 01:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585557981; cv=none; d=google.com; s=arc-20160816; b=vKJx2zioBk5Dg2BFzFOA7hEhETqgWrpzcdndUfNGYaH1Qdm+dVF3bj/0V0inuGfgYl 9RphH7wHiTaNxkQrhfQ86tWXyojee5Vd/2aUf5vqLtme7hPTtl2Qg8J0sm5lTvLT+jvC ZICgFp+ls97INnNM+9pLjTVEO7J4tacMYwvjcITZ7sw3ipL6yycI9TRgbpZU/woVGF8X 1XxoFSiw1gS8aH5hbPBALpViDxugWyf11/6regvB55FCbiVeiwrdKp18mew4CRuYUEs9 VWxxKJppw9Kh/5mTaBnUmLkcB/81B6zuVWFA2rDlbwW9kiuxFaww9lE7Z86IdgRVHGut wrsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1hOjsv1rBWBoysKcEOJkixgqql0Ln/hLBIojoMrAJW0=; b=uTQHmJWGD0Ejpl++cUn5b04uqV3HmjynzKdTrE3hDXE7xCWVmR87PbUoth+mFlmwcT S/mdbh+FOtqUVfOyvNuQwCewsrDrNqE3n1Ii8CjyZDgxxtgleU0xX0f6fC7R/7ocQXSR urcf21uQ41+iUI88/4MAs+Zar4EDJtTSeLoXN1nns8W2TrCsIAwgl/CE9WpfSi5G23KL nf2z2+zGY7KyrpBn9UU0Vdae+cnHawBUhkuOuhD5Ks2pacUkPMrSiNlxTAMk5tas/pMA eBB8xZxzT1h/bJvFln//i4mOJeq8L0wP0oj3Deu+OZidSEmTRbwU3lZhhLU7uKe1qPip P0LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 96si6126962oty.198.2020.03.30.01.46.09; Mon, 30 Mar 2020 01:46:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729472AbgC3Ioj (ORCPT + 99 others); Mon, 30 Mar 2020 04:44:39 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50909 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728759AbgC3Ioi (ORCPT ); Mon, 30 Mar 2020 04:44:38 -0400 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jIq1o-0004PU-Hp; Mon, 30 Mar 2020 08:44:16 +0000 Date: Mon, 30 Mar 2020 10:44:15 +0200 From: Christian Brauner To: Zhiqiang Liu Cc: ebiederm@xmission.com, oleg@redhat.com, tj@kernel.org, guro@fb.com, joel@joelfernandes.org, jannh@google.com, "linux-kernel@vger.kernel.org" , Mingfangsen , Yanxiaodan , linfeilong Subject: Re: [PATCH] signal: check sig before setting info in kill_pid_usb_asyncio Message-ID: <20200330084415.p4v5g6s24innsjrc@wittgenstein> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 10:18:33AM +0800, Zhiqiang Liu wrote: > > In kill_pid_usb_asyncio, if signal is not valid, we do not need to > set info struct. > > Signed-off-by: Zhiqiang Liu I'd have done: if (!valid_signal(sig)) return -EINVAL; instead of setting ret to EINVAL above but that's mostly a matter of style. Picking this up unless someone sees a problem with it. Thank you! Acked-by: Christian Brauner