From patchwork Fri Sep 3 09:57:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 152821 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o839sEUo003388 for ; Fri, 3 Sep 2010 09:54:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751900Ab0ICJyM (ORCPT ); Fri, 3 Sep 2010 05:54:12 -0400 Received: from mail.windriver.com ([147.11.1.11]:63650 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138Ab0ICJyL (ORCPT ); Fri, 3 Sep 2010 05:54:11 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o839rxI6025454; Fri, 3 Sep 2010 02:53:59 -0700 (PDT) Received: from localhost.localdomain ([128.224.163.220]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 3 Sep 2010 02:53:58 -0700 From: Jason Wang To: mchehab@redhat.com, moinejf@free.fr Cc: linux-media@vger.kernel.org Subject: [PATCH] V4L/DVB: gspca - main: add urb buffer flags Date: Fri, 3 Sep 2010 17:57:19 +0800 Message-Id: <1283507839-4162-1-git-send-email-jason77.wang@gmail.com> X-Mailer: git-send-email 1.5.6.5 X-OriginalArrivalTime: 03 Sep 2010 09:53:58.0606 (UTC) FILETIME=[EDE676E0:01CB4B4D] Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Sep 2010 09:54:14 +0000 (UTC) diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index b984610..78abc1c 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -223,6 +223,7 @@ static int alloc_and_submit_int_urb(struct gspca_dev *gspca_dev, usb_rcvintpipe(dev, ep->bEndpointAddress), buffer, buffer_len, int_irq, (void *)gspca_dev, interval); + urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; gspca_dev->int_urb = urb; ret = usb_submit_urb(urb, GFP_KERNEL); if (ret < 0) {