From patchwork Thu Oct 27 20:23:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 9400443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 383AF600BA for ; Thu, 27 Oct 2016 20:45:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21FE62A3C2 for ; Thu, 27 Oct 2016 20:45:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16E302A3C9; Thu, 27 Oct 2016 20:45:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E98EC2A3C2 for ; Thu, 27 Oct 2016 20:45:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942190AbcJ0Up0 (ORCPT ); Thu, 27 Oct 2016 16:45:26 -0400 Received: from smtpoutz25.laposte.net ([194.117.213.100]:59140 "EHLO smtp.laposte.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S942040AbcJ0UpX (ORCPT ); Thu, 27 Oct 2016 16:45:23 -0400 X-Greylist: delayed 1300 seconds by postgrey-1.27 at vger.kernel.org; Thu, 27 Oct 2016 16:45:23 EDT Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout013 (Postfix) with ESMTP id CCEBE1046CE for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1477599820; bh=XgWi1o96KTlRGDke0MkbFwl61eShuiduH1jfdL2ktOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bHv4zRVNvCdebIAnGdfCeJuQLvYCGeJHhhBdF2que52zxRvm0q6A3ICN4b71LPF0U +0HMMh+PLwlc7e/nSQS9IGYjFc1lcg6PwGfPvga8cCZTb7pCHygqiROkCwv0nTY4rk E+nqT9+VFm+itSEI36iObBEbWPmNGRjUO5p1tyW60wzPA8GmLbOW6o9eDe22sGYyzy BY04AyJnvYr9+zzZs7of7RYTe5AKkEqng3w67SxC6whC6mcc2zzeEVYLCNXjqtpSPN RLpbu9wbTcXeNbdi5nAYZ82leLohR3geSopSqXFf8khPRhWiEzvGXnGxfcSACslY5U RIZueWifeZBWg== Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout013 (Postfix) with ESMTP id C02501046D4 for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) Received: from lpn-prd-vrin003 (lpn-prd-vrin003.prosodie [10.128.63.4]) by lpn-prd-vrout013 (Postfix) with ESMTP id BC6321046CE for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id A5A5648E0E7 for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) Received: from romuald.bergerie (rqp06-1-88-178-86-202.fbx.proxad.net [88.178.86.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lpn-prd-vrin003 (Postfix) with ESMTPSA id 33B3348E0D3; Thu, 27 Oct 2016 22:23:38 +0200 (CEST) Received: from radicelle.bergerie (radicelle.bergerie [192.168.124.12]) by romuald.bergerie (Postfix) with ESMTPS id 6D79A17E4BB8; Thu, 27 Oct 2016 22:23:37 +0200 (CEST) Received: from vincent by radicelle.bergerie with local (Exim 4.87) (envelope-from ) id 1bzrD7-0003ru-Bb; Thu, 27 Oct 2016 22:23:37 +0200 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Vincent=20Stehl=C3=A9?= , Minghsiu Tsai , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH next 1/2] media: mtk-mdp: fix video_device_release argument Date: Thu, 27 Oct 2016 22:23:24 +0200 Message-Id: <20161027202325.20680-1-vincent.stehle@laposte.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <1473340146-6598-4-git-send-email-minghsiu.tsai@mediatek.com> References: <1473340146-6598-4-git-send-email-minghsiu.tsai@mediatek.com> MIME-Version: 1.0 X-VR-SrcIP: 88.178.86.202 X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrfeelvddrjedugddugeejucetufdoteggodetrfdotffvucfrrhho X-VR-Cause-2: fhhilhgvmecunfetrffquffvgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhht X-VR-Cause-3: shculddquddttddmnecujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhep X-VR-Cause-4: gghinhgtvghnthcuufhtvghhlhoruceovhhinhgtvghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhn X-VR-Cause-5: vghtqeenucfkphepkeekrddujeekrdekiedrvddtvdenucfrrghrrghmpehmohguvgepshhmthhpohhu X-VR-Cause-6: thdphhgvlhhopehrohhmuhgrlhgurdgsvghrghgvrhhivgdpihhnvghtpeekkedrudejkedrkeeirddv X-VR-Cause-7: tddvpdhmrghilhhfrhhomhepvhhinhgtvghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhnvghtpdhr X-VR-Cause-8: tghpthhtoheplhhinhhugidqmhgvughirgesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-VR-AvState: No X-VR-State: 0 X-VR-State: 0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP video_device_release() takes a pointer to struct video_device as argument. Fix two call sites where the address of the pointer is passed instead. Fixes: c8eb2d7e8202fd9c ("[media] media: Add Mediatek MDP Driver") Signed-off-by: Vincent Stehlé Cc: Minghsiu Tsai Cc: Hans Verkuil Cc: Mauro Carvalho Chehab --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c b/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c index 9a747e7..4a9e3e9d 100644 --- a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c +++ b/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c @@ -1267,13 +1267,13 @@ int mtk_mdp_register_m2m_device(struct mtk_mdp_dev *mdp) err_vdev_register: v4l2_m2m_release(mdp->m2m_dev); err_m2m_init: - video_device_release(&mdp->vdev); + video_device_release(mdp->vdev); return ret; } void mtk_mdp_unregister_m2m_device(struct mtk_mdp_dev *mdp) { - video_device_release(&mdp->vdev); + video_device_release(mdp->vdev); v4l2_m2m_release(mdp->m2m_dev); }