Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp942900pxb; Fri, 13 Aug 2021 09:40:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJSP/hVtBseQZzggc+kHqZOkL3jPx4sFuHuei1eTQPY+TIDwMWnIu6xF3Hzon9QNqDTXLF X-Received: by 2002:aa7:cb0f:: with SMTP id s15mr4268725edt.190.1628872829681; Fri, 13 Aug 2021 09:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628872829; cv=none; d=google.com; s=arc-20160816; b=txsHMWHIH+w6CEl4tL/Xxb88fTAL0nW5SMdICfQQRG39RNk7yUYvbIavkmIylCpneD OcTIdDUTB3GmxAJN0FiM7e8xOR0qLnXlfDEIFVMn4jMmeYJEdRefKR3K82tYY5u2R5Mc E84OvTAmdgruibWbeDFDeH9g8WKyh1G+s+DLeH91lZMEQso8UGFgagq6g6Ojk84Fb2iz 3O8cO86Oqe/G3RiW/2ZerMuYe+pXgZaQdrVVZiASjAqDDNse6NGpR4u+jEnH9Rr3JdUm 5obBF29C967tE6rfaEjCEtfj+7b2iPAixIqPKNY17HKQ1e/5YVkn3Jh4ScH/TnSK0E/B FcLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rKvd8GPFgFZOtNQzzws03kml/1ydB9Y6K/jtiteL0wc=; b=DaAriXdhbr+9DYqcDxCahe9U/Xx9yAahHqqzFXVsap7LUZ428rQRKJl7EbmsB4eMc1 7iq7b57RWRvenZNepNtYp+lsoeXbWlxTykxPjLNv8QICe5WrzFwxfiL009YPOhcZJhvM 8sxY1h28roy0cjXqVLmF4YiVDazZa+U970WqLnKgyXaoUkhZwc427eXS5K9eRub6g5Nx uqD1jW/kui9c5NKzkvAHSAJ87UunA4QtwkHm1c3J490ULzKcvhanCbKa4Ih02GWTcpC2 x6sONk3kHc8a5Cr/ZXpMwVdH/7JF92PUeqluMPVgkho7Q0NSCCNvx9njU+MvMxhuPGdR CKuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mkunRimk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si1971676ejg.444.2021.08.13.09.40.06; Fri, 13 Aug 2021 09:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mkunRimk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233827AbhHMQig (ORCPT + 99 others); Fri, 13 Aug 2021 12:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233838AbhHMQig (ORCPT ); Fri, 13 Aug 2021 12:38:36 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62BB7C0617AD for ; Fri, 13 Aug 2021 09:38:09 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id w6so5690673plg.9 for ; Fri, 13 Aug 2021 09:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rKvd8GPFgFZOtNQzzws03kml/1ydB9Y6K/jtiteL0wc=; b=mkunRimklcu7tq5sSrKfl+MZalwCsCE4vJGGtvK/+ezuV7gNnMBYCay5kpiCcnF0DR r07bEiI8kfE2zFDR77solHFcAHg4UcjgdwcGYlr7CUxBh3a2rlLuN9NjGkRit/PgLxIK fApuGfKI4bNzgewxf98oGVyAj4fiqfE+NFY3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rKvd8GPFgFZOtNQzzws03kml/1ydB9Y6K/jtiteL0wc=; b=rOc/TlbUnFoVM5H0wFgHBAyq57C8Pv+BbvvkwNStJR3hpv2xMDwV2dWNx94yCOfiOJ DWrTjIRq+AMGwcxFBVNkNgVGy4qdL+owzbAe0bDlfHBSUAHML2Fo4Hh3o9UG0WFxFmo3 m3Zlog9azWfEWZoCi6lUZfpgXkAzfe2Q9Cio2/Tgspbdv8SjkV6vlhqb4EusIODUsz4a EX4M8dEyFb/ltDP7G5ACke97RT73HK7zCpuGXQizhHeXw8YgByBuNTaxiFJBZ7+sVbNl O+pdRlH6ZRO17Yc2aPluUN3kOflhLh4aG2VQ1wIpVvGvp2R3ZBiE1stnZk/V/iaT1xxT vaKw== X-Gm-Message-State: AOAM533lVffqWvDR07eFaUowfeQNwUBRDRWtai/4c5v2kiG7OJr3kuwa oJlVhElkjrjKSjiWdQTs1UkQTw== X-Received: by 2002:a62:6042:0:b029:3e0:86b4:51b with SMTP id u63-20020a6260420000b02903e086b4051bmr3241725pfb.62.1628872688791; Fri, 13 Aug 2021 09:38:08 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q5sm2291199pjo.7.2021.08.13.09.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 09:38:08 -0700 (PDT) Date: Fri, 13 Aug 2021 09:38:07 -0700 From: Kees Cook To: Arnd Bergmann Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , Pavel Skripkin , Arnd Bergmann , Sakari Ailus , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: atomisp: restore missing 'return' statement Message-ID: <202108130937.7848F6B318@keescook> References: <20210802143820.1150099-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210802143820.1150099-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021 at 04:38:14PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The input_system_configure_channel_sensor() function lost its final > return code in a previous patch: > > drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c: In function 'input_system_configure_channel_sensor': > drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1649:1: error: control reaches end of non-void function [-Werror=return-type] > > Restore what was there originally. > > Fixes: 728a5c64ae5f ("media: atomisp: remove dublicate code") > Signed-off-by: Arnd Bergmann I hit this too. Thanks! Reviewed-by: Kees Cook -Kees > --- > .../media/atomisp/pci/hive_isp_css_common/host/input_system.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c > index 8e085dda0c18..712e01c37870 100644 > --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c > +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c > @@ -1646,6 +1646,8 @@ static input_system_err_t input_system_configure_channel_sensor( > default: > return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; > } > + > + return INPUT_SYSTEM_ERR_NO_ERROR; > } > > // Test flags and set structure. > -- > 2.29.2 > -- Kees Cook