From patchwork Wed Nov 6 18:48:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 3148731 Return-Path: X-Original-To: patchwork-linux-media@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 EC7A1BEEB2 for ; Wed, 6 Nov 2013 18:48:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B877920549 for ; Wed, 6 Nov 2013 18:48:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA09920523 for ; Wed, 6 Nov 2013 18:48:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754685Ab3KFSsp (ORCPT ); Wed, 6 Nov 2013 13:48:45 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:58142 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175Ab3KFSso (ORCPT ); Wed, 6 Nov 2013 13:48:44 -0500 Received: by mail-lb0-f172.google.com with SMTP id c11so56935lbj.17 for ; Wed, 06 Nov 2013 10:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SogWq//YPOMhl1+uio4FoHIFfopTtOi7WQ8OomGILHQ=; b=1FvFeLzjMApRvjjHWq776NupdWJDKZ92QmgAo1LvpFdDKCIZxsz94+cN++l9Owk1bJ 2Isi/IG8b7PWOJfuf4M3IUbXtzxySGwCVx9iEo6NOX+lWqzEvRpH04PakambS4FGP/q2 IM178RSeA3vkk30KNmqqr9AK0B6QSmnDtXwjGfd0hgoi5/G3XShbflmLzjSe3jPndviF XYa15aLoGyXtdZuW83Eox5wX8ehutJJ1x8h+652IEmVkCIDN/k4XBD+LR4yKZCIjtk92 NIZU1Dtii+S67R3Dl8oCMreOlRFt/+qy7oyIoydNeVL3e7nEoIomRm7KL1yKgijpITBS MGtg== X-Received: by 10.112.128.166 with SMTP id np6mr3694540lbb.7.1383763722341; Wed, 06 Nov 2013 10:48:42 -0800 (PST) Received: from neopili.qtec.com (0x4dd4aed9.adsl.cybercity.dk. [77.212.174.217]) by mx.google.com with ESMTPSA id f4sm34215785lah.0.2013.11.06.10.48.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2013 10:48:41 -0800 (PST) From: Ricardo Ribalda Delgado To: Pawel Osciak , Marek Szyprowski , Kyungmin Park , Mauro Carvalho Chehab , linux-media@vger.kernel.org (open list:VIDEOBUF2 FRAMEWORK) Cc: Ricardo Ribalda Delgado Subject: [PATCH] videobuf2-dma-sg: Fix typo on debug message Date: Wed, 6 Nov 2013 19:48:38 +0100 Message-Id: <1383763718-6207-1-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 1.8.4.rc3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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, RP_MATCHES_RCVD, 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 num_pages_from_user and buf->num_pages were swapped. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-core/videobuf2-dma-sg.c index 16ae3dc..72353e4 100644 --- a/drivers/media/v4l2-core/videobuf2-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf2-dma-sg.c @@ -174,7 +174,7 @@ static void *vb2_dma_sg_get_userptr(void *alloc_ctx, unsigned long vaddr, userptr_fail_get_user_pages: dprintk(1, "get_user_pages requested/got: %d/%d]\n", - num_pages_from_user, buf->sg_desc.num_pages); + buf->sg_desc.num_pages, num_pages_from_user); while (--num_pages_from_user >= 0) put_page(buf->pages[num_pages_from_user]); kfree(buf->pages);