Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp443669pxj; Thu, 20 May 2021 13:04:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ZWEFKBdw/a6aiUadEREzFPXPXBodN1kRzsvz71su35w+Q9ZndG0O0L/d5hqN30ZoEZIX X-Received: by 2002:a50:d51a:: with SMTP id u26mr6807082edi.285.1621541040569; Thu, 20 May 2021 13:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621541040; cv=none; d=google.com; s=arc-20160816; b=leL+phSPL6yG5MCNSzjQOqkxT7uqbsthd4U/UrBg2XP/YRcfpTDmQMypFSpkVRqE9k ZrBANK6rtJCjnN26+vw9OED2vbWFYp0X0yGCVzFwky/HdxrqPd2F4zFA7XlK1bOlXTGd XQNhAzUsoFJborxYjoi8bILJ7NK3GmnezlUOh1eZSRsRBg5q2/osY0bBEAtIevAnWW2E X6wds0R0FjTmIMA2vKMMjmei06E1Avmw9jPnKAlBLJt3x2TwN10ti/ruy9igRXCi92gp F2J7mKchKBB0GMUipfh0HgcswBkeykcoB2iCawybxLVkfGvqeQAxgQZUN24bfxFzy/NC hgeg== 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=a/3ZTWO/3LEOuKHA8WtQJcKXUzjb2TozAxMi45vrWHo=; b=xDjrPOb0a0umdxcbCrLZ6b+9SC5UTeLzCbS2ksT8XimtUsXgQRRn5EgkCFdAYP3Qas 87fzXtXDx1a3UmlXG1393vuP/X+SfDgOidKl53TgGbjRejxa1j3AFnBPxpyZnA8cWYlc kHUPhauZ23GxvfQytfnxNCOYANsEHPj8H+P58qkQMBvof4umnEImCIG8mrjpC9hJMmc2 3c8guu8Uuj7RoMGqu5uCA5cPtHbOarxIWKmmKFkewhYHo6prEea2seYrR22wjo1bHlpD GHkqHMzCe/1PDBV5qi+DHr1/OgvsC6gLO8SBxiNBThgdWkstBS0345NAmGKRJ5ibnDXI 7Xbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="COrxkK/X"; 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 ha8si3322500ejb.488.2021.05.20.13.03.36; Thu, 20 May 2021 13:04:00 -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="COrxkK/X"; 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 S237474AbhETKpo (ORCPT + 99 others); Thu, 20 May 2021 06:45:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:60460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237116AbhETK3i (ORCPT ); Thu, 20 May 2021 06:29:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFC5E61412; Thu, 20 May 2021 09:51:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504290; bh=e/saoSKQSXc1xLAhPuyeu7mnQsRJFJA40wQLwfH72D4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=COrxkK/XvrPVCIh09MaD13f0CFoZHf8upqxrARrJCnjVtvLiWOjICzI4agw71X+t0 WOcG4hBSV9zuwiylAaM6opvzoMvWyi1ToXVtDJbqjjvpPB65d17gZ9snMnLhmAhivX sf9ysCovFpf2Kl8HzjaswfpJWKjicpuHWl8L70Hc= 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.14 179/323] media: vivid: fix assignment of dev->fbuf_out_flags Date: Thu, 20 May 2021 11:21:11 +0200 Message-Id: <20210520092126.257455356@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 3e7a26d15074..4629679a0f3c 100644 --- a/drivers/media/platform/vivid/vivid-vid-out.c +++ b/drivers/media/platform/vivid/vivid-vid-out.c @@ -1010,7 +1010,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