Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4607487pxj; Wed, 12 May 2021 09:08:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiNYrcdoA+B4K3HBp8j9kZjkQXK35W2habd9lg281pH6oxeolEmx8sajVyCynqAJOScSS2 X-Received: by 2002:a7b:cd04:: with SMTP id f4mr40420156wmj.84.1620835719585; Wed, 12 May 2021 09:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620835719; cv=none; d=google.com; s=arc-20160816; b=zACqOlAL68NDsyRFmaVSdO0TBccyhm9GS83wFHCg23xdbcAUnrRHw0vYQZ1c0nXCda 9CZk+XazFIJ1oUBUQPy5d0Mf49bbqax7P/uJfmZXS/xXMBReMP73IsTGz0E9ZfZfu1uC NBI64Ct6zmXINlIhktB0PZ/2Y85Y2GDbAkL4ZkFHZbaX90FfDKUaMZ1FhDKrnm9iUhEj TshCA0ltlfmA7ZMtRHEvf6HBvapLytmptL1gjj2zcO/Nnu+Vzkl7p1277Ux899AwtLay 12RxWAIvWTB/LI29WzHbz4NDOqnEZhlIoCdZQ+nSnQR4+P2C4WbrWMxurs8Zcd7bzFFf 6GSA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jlHAdBn80UbBqXLP4UEfVA5V6c6UqWdHa/KvibrKNlg=; b=bbhjywMchzkgTcvunBgel4XXrpZ8BBOmRIRjTC2yMiZH7IYZZHUdrohghLrhLc5Edr XdeMhLq+8jWMXlki31tzxqcep2GI5sQjENtVykeBiK88pTGrQtfMX68CVTTaqAkzq58+ +PM/hLryX+XYX0EeUGxcGOMtOBA0ntpgkp0yEGwfDbi6P+MoDTvIbod+TfHPhEDqNatr PnFLMZ0l6e/QSRfzhcsJP3T93738Zi9RRA8btsjjd6gFD6cYVM5mG62SAX+JE4lSubFm rdbSnueqOyokTkEVSZSHShlz42TXgdVkz4wT5kLbQs44mEzAaQbxJmXdPy/O2SWG5kAI 2ScA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U2nAqA8i; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si345869ejv.701.2021.05.12.09.08.15; Wed, 12 May 2021 09:08:39 -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=@linuxfoundation.org header.s=korg header.b=U2nAqA8i; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239017AbhELQHE (ORCPT + 99 others); Wed, 12 May 2021 12:07:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:40990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235607AbhELP2j (ORCPT ); Wed, 12 May 2021 11:28:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A1DC61C25; Wed, 12 May 2021 15:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832452; bh=aczr7vIeZm1JZ/AbnlrwpsiytNSqtbq/TClrKgBRCkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U2nAqA8ihVP39jAu+6ihqNzIiTkmSxVpxtaQgA5IOmM8Scs2CxbHEyno0L7WGtLte usOMe+9S3S6UD+Tb5b635SQ4skBvDfvePoe24igHli1d8pEMGOGVQS7s1UNTWEqlWy LjaWVKeb4VQe1lLx1eZgUNzRCmVA64ZVbU5nqqtM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 284/530] media: vivid: fix assignment of dev->fbuf_out_flags Date: Wed, 12 May 2021 16:46:34 +0200 Message-Id: <20210512144829.144284905@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King [ Upstream commit 5cde22fcc7271812a7944c47b40100df15908358 ] Currently the chroma_flags and alpha_flags are being zero'd with a bit-wise mask and the following statement should be bit-wise or'ing in the new flag bits but instead is making a direct assignment. Fix this by using the |= operator rather than an assignment. Addresses-Coverity: ("Unused value") Fixes: ef834f7836ec ("[media] vivid: add the video capture and output parts") Signed-off-by: Colin Ian King Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/test-drivers/vivid/vivid-vid-out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/test-drivers/vivid/vivid-vid-out.c b/drivers/media/test-drivers/vivid/vivid-vid-out.c index ee3446e3217c..cd6c247547d6 100644 --- a/drivers/media/test-drivers/vivid/vivid-vid-out.c +++ b/drivers/media/test-drivers/vivid/vivid-vid-out.c @@ -1025,7 +1025,7 @@ int vivid_vid_out_s_fbuf(struct file *file, void *fh, return -EINVAL; } dev->fbuf_out_flags &= ~(chroma_flags | alpha_flags); - dev->fbuf_out_flags = a->flags & (chroma_flags | alpha_flags); + dev->fbuf_out_flags |= a->flags & (chroma_flags | alpha_flags); return 0; } -- 2.30.2