Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp316343pxj; Thu, 20 May 2021 09:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt9KgpTu9vOwNJsDnpBd/kbgwnr8b42xjdhnw7DBz+6AIORsyqVnAM9S71z5b+IAe02qy4 X-Received: by 2002:a05:6602:134c:: with SMTP id i12mr6664746iov.175.1621529936763; Thu, 20 May 2021 09:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621529936; cv=none; d=google.com; s=arc-20160816; b=jmivHZnukLo9xxmzcnushhziJph7xpO8MTaXqi1b6/dgtenMlRPBJR5eX1hTdmv8Te oNgDge4DBqUgKxmBV1oBg7ub3odAL/DoadD1UcoFyGalAcaTCx2JdpCgZLn+KEcRiuRb 5F42DRspHbOALeUn2Qh4JEkSCgse4cYHwvDmUBNNORY2yZ2uu6Cnqlxs/vAhr3oG6IQY UCwnA/9mp70EKmQ0X1PK6M8DtyKKWMT47MdWrxBTCpziPIzqkGPz1QUmast2yyQv4e5z r6y/9riDhUSrZAq9oXLcusnmRJRY7TnOTO+FjTYOzYOIuzdJjHlgkfOQZCC+yvTTLX6H ts8g== 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=b+GualnEQUvK2zuwhwfKtf5NOBihR2eyJs9IXY2ZzLk=; b=QLQy69U3PZKWuDOr1eghAlxehD9+QV2x2GiaDjIPOihkXy0PsImcyII/kldmvAQuLD /1wNFB+dnSi4roRyCoBZkSOFrMTDQw3fq2snNORot8aERrYsjzqaOddTKD92/MaKeOeD 0H2+Pn40dbYkvUN46Bfqovpi31W3L+BI+8idkEyiVjCjM/xYcHp7gqIuXp5apfb8wN5R viZ93LLKttBurdLNhyMq90hhCNxyVg06Ida+b1JMTH1DqxlTca4aIDED1wv1J8iLe5ll h8n4gHlrU47zVw8kfELbhgl0QUxHBCKL5+cF4ODGNxrU6+8VxdNKkyqTAsGMIVH3DMJZ HCMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aURehY5N; 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 g6si2890830ila.98.2021.05.20.09.58.44; Thu, 20 May 2021 09:58:56 -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=aURehY5N; 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 S234516AbhETKA2 (ORCPT + 99 others); Thu, 20 May 2021 06:00:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:59138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235143AbhETJzw (ORCPT ); Thu, 20 May 2021 05:55:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE2E96140C; Thu, 20 May 2021 09:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503447; bh=mEyNXcaTqGCl9pT3GvAH7Cr1GyMwL1NgYC/gOxNEFaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aURehY5NmGAsPw9bNnEUAFiv2+MFmF2BzFKwZhZPy4btE4kR8K33elyeEuWc6EL/k XcMlQhk6KmyZy2hbmzXchrrnS5Rq2/8WWOzvKgKXpa5KTMJ0g/vq8blaRPURmXP43l 5AFO4uFhNLpTXleTEe5CzJQsyZbBe7nzrZZcZtb0= 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 4.19 226/425] media: vivid: fix assignment of dev->fbuf_out_flags Date: Thu, 20 May 2021 11:19:55 +0200 Message-Id: <20210520092138.851765579@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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/platform/vivid/vivid-vid-out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vivid/vivid-vid-out.c b/drivers/media/platform/vivid/vivid-vid-out.c index 0f909500a0b8..ecd9e36ef3f6 100644 --- a/drivers/media/platform/vivid/vivid-vid-out.c +++ b/drivers/media/platform/vivid/vivid-vid-out.c @@ -998,7 +998,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