From patchwork Mon Feb 25 22:19:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 10829213 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E4CE1390 for ; Mon, 25 Feb 2019 22:20:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 211F12BF60 for ; Mon, 25 Feb 2019 22:20:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F21B2BF6B; Mon, 25 Feb 2019 22:20:30 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 D17EC2BF60 for ; Mon, 25 Feb 2019 22:20:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728326AbfBYWUH (ORCPT ); Mon, 25 Feb 2019 17:20:07 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51873 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbfBYWUG (ORCPT ); Mon, 25 Feb 2019 17:20:06 -0500 Received: by mail-wm1-f65.google.com with SMTP id n19so505824wmi.1 for ; Mon, 25 Feb 2019 14:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W9KqbqFn/6YfJv+YuJSvZWh6iSIWrSMsB1/ivTkTeB8=; b=rRZk9JQSXEmWbNLdFGeXYvfZM8QQlYJIozno3gInAVEnE/GbL83kwJ9fJYnFtSUEYQ GEzZwGiNt8xP++ywgGkmPcYszKUC4J7g9JsoZvDuo7DxISrgCgIXg+5QZAiB5wWBqU04 cIZq04iMppk7yPVptNsTtuk0xndxx8pSeN5rws0voJNs5jY6G1tVYo5RB9dXBIi1b+sM 5H89zR385GPZ0qeuQJisvHDNVHnuEFE+4nWk40916XIQcP4uthBgPu/u6Trwbkzomp39 JqOnQ2oYmGMgSOnhOhejcH97gpugmy4VOCOy25daMH39BQ/mCuS3scT30ZKvEp99KPxL UCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=W9KqbqFn/6YfJv+YuJSvZWh6iSIWrSMsB1/ivTkTeB8=; b=IJmGkEWJqmkn9v8eFNxkjuHOAroFaBA1CDkArsN/1iZQCymHBae6RWIUQoIh5nq+Wj xu7+r+Egq5fL321PZYIvZx0zqUWrqo5oTyIcew+7F6LNi8iHoYaXfKwrma3li71iNS2C rmEuddubckUrg9jWCvIxy8B00qpSAE10SyTErFSEMtnEh9/dwL/RNoEGT1bFzJ35OyyW gnacGpXpXzfcZ0W3FzBYsdLQ3s+xSuL4kv8rIILU7YnBieR8eKfYLG7KnSp82Xri4hGG s2p9gSDwp1PAHXKNyveDHC4aWxpaeUiZyedQHI/JqAb/FCvIrT0HQe4zVqfAByN7EMJs d0nQ== X-Gm-Message-State: AHQUAuZEuknV2WAsKpM5VxXxogd09O8K/QU4GAV41sLdyYv6DV5zloED BR6rDvPgdbHSr3dVe5Ih189piEJeEAM= X-Google-Smtp-Source: AHgI3Ibl/wNNJeMH1T7vWO0nJzqrx7rY9dCWii0M0+1stpTGRss/zP/Id+pcA2mP8aFcrFXvJ64n5Q== X-Received: by 2002:a7b:cbcd:: with SMTP id n13mr597778wmi.92.1551133204495; Mon, 25 Feb 2019 14:20:04 -0800 (PST) Received: from ubuntu.home ([77.127.107.32]) by smtp.gmail.com with ESMTPSA id a20sm4168033wmb.17.2019.02.25.14.20.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 14:20:03 -0800 (PST) From: Dafna Hirschfeld To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, helen.koike@collabora.com, Dafna Hirschfeld Subject: [PATCH v4 09/21] media: vicodec: bugfix: free compressed_frame upon device release Date: Mon, 25 Feb 2019 14:19:33 -0800 Message-Id: <20190225221933.121653-10-dafna3@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190225221933.121653-1-dafna3@gmail.com> References: <20190225221933.121653-1-dafna3@gmail.com> 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 Free compressed_frame buffer upon device release. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index 8205a602bb38..8128ea6d1948 100644 --- a/drivers/media/platform/vicodec/vicodec-core.c +++ b/drivers/media/platform/vicodec/vicodec-core.c @@ -1614,6 +1614,7 @@ static int vicodec_release(struct file *file) v4l2_fh_del(&ctx->fh); v4l2_fh_exit(&ctx->fh); v4l2_ctrl_handler_free(&ctx->hdl); + kvfree(ctx->state.compressed_frame); kfree(ctx); return 0;