Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp484473ybl; Tue, 28 Jan 2020 06:40:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxDMHM26qcjQSSA+Xzi202Gg1eKvJ37LOdzoDWUrlZ/FScskZ2S3kvdT64NoWIS9za9xp2Z X-Received: by 2002:a9d:146:: with SMTP id 64mr12018291otu.39.1580222459700; Tue, 28 Jan 2020 06:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222459; cv=none; d=google.com; s=arc-20160816; b=ZGX2YTW+Syw6bwjCdDxq1/VuA56O2c0GoMmo4BZluTjOd3fJscS1xhStmo6RL9+t+2 7NWDAsItw3/8DoCYT/S+2R53QrcIyZ0TH58sfJiQVhAI1SlQ+AmWkINTpLSxHcYoLgt5 Gf80tjker/tLr5yfM7nl4RzUlcX5ORGTKeec6pGgI8t34qd8iD8bb1UikjuDwJITfRDR AMWUNRkTl996scHHpwS0Mmd+6fFBQ3fvhGB8dikM8CgO2m2Qgn+g7GS3LLxeg1QSa5f/ vBaozQqmA8flxxFDrcVg8vGTC3Jp6ITPf9x5PGA4g8MGTy/byEoD5/60a0vusAW1ZciR yMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xRh8Inmb1xEVp6MASNVZDgK9AbERnIrym+MIa+6WAKw=; b=kgBFZIOeQtCF0/Vh9riH8M8/k4ORJPgfq/RORt9Y2B/CREcO9wg2vtgrnje3ang3KS 4TV5iyMAhwSDfqPUHmaC+KVQ0TGks+xo5OyZk0mPmbvrxIoNcu7zMTCZYCi2mMn7oVWo RGR5OcsLXq1GdolN1YIzPwmchvA5VsY2p643kqsY5I6/dxd6wGVYMCeGqxKbly7EG8ep chXW1qgDtyzcmtiSYCrVhqDlXx+fPND2515iKZh07uFwsxl+EJMwFavyGa2ycabqXybg 0c72HoB+syCZb3mK30CI8oTFhzyffjb73huZsk6BHldw2G7xFeTNxAXLNQ94WDsNdPYA q5nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CtHtVwrP; 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 q19si6266063otk.136.2020.01.28.06.40.48; Tue, 28 Jan 2020 06:40:59 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=CtHtVwrP; 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 S1730718AbgA1OSv (ORCPT + 99 others); Tue, 28 Jan 2020 09:18:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:42998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730740AbgA1OSu (ORCPT ); Tue, 28 Jan 2020 09:18:50 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 49BA624690; Tue, 28 Jan 2020 14:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221129; bh=/s9ACbFT8qMDpDRwayydE1Jt32U6UwpIRX67EL52aKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CtHtVwrPVhW7H0l9uLiqqMuhYCZ2TaADYTbS0Se0LfXnWwF5Rv12e6U5soyTnuG2R zMFhujCMasmRUTU10EKhnBhBoIsDPWLqaeKBL/V3WZ9lUeTXNJpUG30o58zUL8eIqW N1Nqe++gDQxfUbat3BvyktZc8PNsFoAh0aL7A2sY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.9 099/271] media: cx18: update *pos correctly in cx18_read_pos() Date: Tue, 28 Jan 2020 15:04:08 +0100 Message-Id: <20200128135859.964229110@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 7afb0df554292dca7568446f619965fb8153085d ] We should be updating *pos. The current code is a no-op. Fixes: 1c1e45d17b66 ("V4L/DVB (7786): cx18: new driver for the Conexant CX23418 MPEG encoder chip") Signed-off-by: Dan Carpenter Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/pci/cx18/cx18-fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx18/cx18-fileops.c b/drivers/media/pci/cx18/cx18-fileops.c index df837408efd59..0171dc5b8809e 100644 --- a/drivers/media/pci/cx18/cx18-fileops.c +++ b/drivers/media/pci/cx18/cx18-fileops.c @@ -490,7 +490,7 @@ static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf, CX18_DEBUG_HI_FILE("read %zd from %s, got %zd\n", count, s->name, rc); if (rc > 0) - pos += rc; + *pos += rc; return rc; } -- 2.20.1