From patchwork Sun Jan 12 11:21:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 23136 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0968320A64 for ; Sun, 12 Jan 2014 11:22:00 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf15250374pbb.11 for ; Sun, 12 Jan 2014 03:22:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=KzTc90ctoqQACPvgDBIGi+i0rBI9ph60pwOEye9J57c=; b=BQV6hFUaex6hT4l/Mz3PQUVVh0sdwZUnIJ/+4zMTpXoQrAsVf7E4lNYlRTQoHwidgJ bxiMqj19kgKpQfSPSg0G+93qV1XFg50CQSRASVAl3Hz7LBxjYJvdASN6BSo/xNuSbtkM oX8a6WJ6H6UztqmQUJPL4KIckVqIWiCXJbGPqOaKgUBoYfx5O/+vimgMtyUnPAhObtP4 p16/fLXxSfdkUTmQh96YqJokNOo2Q9IPHRSylqGdHS9+0gbBH/3vI44J2S5+ugh6qS/B 1lSE5DPKdrwuJsCNJbyxr3qWvM2LcsFNCJTK7ZMic9mzU1edyNjhb0j+VTkQqyPgaNpj eCAA== X-Gm-Message-State: ALoCoQk/5SEjIGOlEHmVVAovkTgHpaodGcwkFP+S2zO0khTqbkYWMpd0XD3wrInQ5jzsqWD/I2YT X-Received: by 10.66.231.74 with SMTP id te10mr8154652pac.16.1389525719917; Sun, 12 Jan 2014 03:21:59 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.40.164 with SMTP id y4ls2302736qek.89.gmail; Sun, 12 Jan 2014 03:21:59 -0800 (PST) X-Received: by 10.224.34.136 with SMTP id l8mr28144199qad.101.1389525719812; Sun, 12 Jan 2014 03:21:59 -0800 (PST) Received: from mail-vb0-x236.google.com (mail-vb0-x236.google.com [2607:f8b0:400c:c02::236]) by mx.google.com with ESMTPS id gc1si6959941qcb.68.2014.01.12.03.21.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 03:21:59 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::236 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::236; Received: by mail-vb0-f54.google.com with SMTP id w20so209920vbb.13 for ; Sun, 12 Jan 2014 03:21:59 -0800 (PST) X-Received: by 10.52.232.135 with SMTP id to7mr643219vdc.58.1389525719593; Sun, 12 Jan 2014 03:21:59 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp67141ved; Sun, 12 Jan 2014 03:21:59 -0800 (PST) X-Received: by 10.67.5.131 with SMTP id cm3mr23359029pad.92.1389525718668; Sun, 12 Jan 2014 03:21:58 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pk8si12642845pab.155.2014.01.12.03.21.58; Sun, 12 Jan 2014 03:21:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751224AbaALLV4 (ORCPT + 4 others); Sun, 12 Jan 2014 06:21:56 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:40458 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbaALLVz (ORCPT ); Sun, 12 Jan 2014 06:21:55 -0500 Received: by mail-pa0-f42.google.com with SMTP id lj1so6603810pab.29 for ; Sun, 12 Jan 2014 03:21:55 -0800 (PST) X-Received: by 10.66.240.4 with SMTP id vw4mr23276193pac.26.1389525714989; Sun, 12 Jan 2014 03:21:54 -0800 (PST) Received: from localhost.localdomain ([117.220.135.245]) by mx.google.com with ESMTPSA id oa3sm30346040pbb.15.2014.01.12.03.21.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 03:21:54 -0800 (PST) From: jassisinghbrar@gmail.com To: linux-media@vger.kernel.org Cc: javier.martin@vista-silicon.com, mchehab@redhat.com, Jassi Brar Subject: [PATCH] [media] m2m-deinterlace: fix allocated struct type Date: Sun, 12 Jan 2014 16:51:28 +0530 Message-Id: <1389525688-3934-1-git-send-email-jaswinder.singh@linaro.org> X-Mailer: git-send-email 1.8.1.2 Sender: linux-media-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Original-Sender: jassisinghbrar@gmail.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::236 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (bad format) header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Jassi Brar 'xt' points to a dma_interleaved_template and not a dma_async_tx_descriptor. Signed-off-by: Jassi Brar --- drivers/media/platform/m2m-deinterlace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index 65cab70..6bb86b5 100644 --- a/drivers/media/platform/m2m-deinterlace.c +++ b/drivers/media/platform/m2m-deinterlace.c @@ -918,7 +918,7 @@ static int deinterlace_open(struct file *file) return ret; } - ctx->xt = kzalloc(sizeof(struct dma_async_tx_descriptor) + + ctx->xt = kzalloc(sizeof(struct dma_interleaved_template) + sizeof(struct data_chunk), GFP_KERNEL); if (!ctx->xt) { kfree(ctx);