Message ID | 1395553451-21249-1-git-send-email-prabhakar.csengg@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com> X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 79EC2BF540 for <patchwork-davinci@patchwork.kernel.org>; Sun, 23 Mar 2014 05:45:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43F3020259 for <patchwork-davinci@patchwork.kernel.org>; Sun, 23 Mar 2014 05:45:22 +0000 (UTC) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD67D20220 for <patchwork-davinci@patchwork.kernel.org>; Sun, 23 Mar 2014 05:45:20 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2N5jJAr031587 for <patchwork-davinci@patchwork.kernel.org>; Sun, 23 Mar 2014 00:45:19 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2N5jJ7C022696 for <patchwork-davinci@patchwork.kernel.org>; Sun, 23 Mar 2014 00:45:19 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Sun, 23 Mar 2014 00:45:19 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2N5jJgr023074 for <patchwork-davinci@patchwork.kernel.org>; Sun, 23 Mar 2014 00:45:19 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 16F7680626 for <patchwork-davinci@patchwork.kernel.org>; Sat, 22 Mar 2014 23:45:19 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflxv17.itg.ti.com (dflxv17.itg.ti.com [128.247.5.93]) by linux.omap.com (Postfix) with ESMTP id 112D480626 for <davinci-linux-open-source@linux.davincidsp.com>; Sat, 22 Mar 2014 23:44:26 -0600 (CST) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflxv17.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2N5iPxs016240 for <davinci-linux-open-source@linux.davincidsp.com>; Sun, 23 Mar 2014 00:44:25 -0500 Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2N5iOEA015835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <davinci-linux-open-source@linux.davincidsp.com>; Sun, 23 Mar 2014 00:44:25 -0500 Received: from [216.82.250.83:23440] by server-14.bemta-12.messagelabs.com id 6F/EB-30288-8B47E235; Sun, 23 Mar 2014 05:44:24 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-11.tower-120.messagelabs.com!1395553463!2399683!1 X-Originating-IP: [209.85.220.50] X-SpamReason: No, hits=0.0 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, spamassassin: X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 16313 invoked from network); 23 Mar 2014 05:44:24 -0000 Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com) (209.85.220.50) by server-11.tower-120.messagelabs.com with RC4-SHA encrypted SMTP; 23 Mar 2014 05:44:24 -0000 Received: by mail-pa0-f50.google.com with SMTP id kq14so4104999pab.9 for <davinci-linux-open-source@linux.davincidsp.com>; Sat, 22 Mar 2014 22:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ej2kHMQOshsUcEOa/ulVdVHD5JapATToMw/DfkM/V6c=; b=u7dQeftN+BTgOXb12a522aBv3bx8HYKxij1hiCJqO3T0X6OnnuhzLqMZUC++pS7FPz ia/1jIP+pI6LCJQQtzWP5ey+2lgslkiQ0zUOdP1kcMrvOQ0w39+IA8qhKlnM2uJe2185 Z/XQfVv1MLc+tDYvnaOHPz9bVBXA7JD8pLhAyAAFbXKaiHRc3qHoq+cpfdWKQOHdcTxE DT426z54Jx6ucqYZhw26I+JAxbXeU7xdxsfdywRRRLH0dZatHwcCfGmzW1KJr0CxhEmY V/Ay+r1uZ3dGIhd+0SfBvXkX9J8ZlRbcjP33wS+7LfYMPDz8IHsbk7ZJgJtINfFvoFw0 MABg== X-Received: by 10.68.237.228 with SMTP id vf4mr964862pbc.131.1395553462730; Sat, 22 Mar 2014 22:44:22 -0700 (PDT) Received: from localhost.localdomain ([115.117.231.180]) by mx.google.com with ESMTPSA id iv2sm18951471pbc.19.2014.03.22.22.44.18 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Mar 2014 22:44:21 -0700 (PDT) From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com> To: LMML <linux-media@vger.kernel.org> Subject: [PATCH for v3.15] media: davinci: vpfe: make sure all the buffers unmapped and released Date: Sun, 23 Mar 2014 11:14:11 +0530 Message-ID: <1395553451-21249-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 CC: DLOS <davinci-linux-open-source@linux.davincidsp.com>, LKML <linux-kernel@vger.kernel.org>, Mauro Carvalho Chehab <m.chehab@samsung.com> X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: <davinci-linux-open-source.linux.davincidsp.com> List-Unsubscribe: <http://linux.davincidsp.com/mailman/options/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=unsubscribe> List-Archive: <http://linux.davincidsp.com/pipermail/davinci-linux-open-source> List-Post: <mailto:davinci-linux-open-source@linux.davincidsp.com> List-Help: <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=help> List-Subscribe: <http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: <davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com> Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c index 9474f4a..ac6c8c6 100644 --- a/drivers/media/platform/davinci/vpfe_capture.c +++ b/drivers/media/platform/davinci/vpfe_capture.c @@ -734,6 +734,8 @@ static int vpfe_release(struct file *file) } vpfe_dev->io_usrs = 0; vpfe_dev->numbuffers = config_params.numbuffers; + videobuf_stop(&vpfe_dev->buffer_queue); + videobuf_mmap_free(&vpfe_dev->buffer_queue); } /* Decrement device usrs counter */