From patchwork Sat Apr 2 00:21:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pete Eberlein X-Patchwork-Id: 682831 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 p320VCBP030487 for ; Sat, 2 Apr 2011 00:31:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753563Ab1DBAbK (ORCPT ); Fri, 1 Apr 2011 20:31:10 -0400 Received: from gateway04.websitewelcome.com ([67.18.21.5]:56391 "HELO gateway04.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753179Ab1DBAbJ (ORCPT ); Fri, 1 Apr 2011 20:31:09 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 02 Apr 2011 00:31:12 +0000 (UTC) X-Greylist: delayed 574 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Apr 2011 20:31:09 EDT Received: (qmail 6658 invoked from network); 2 Apr 2011 00:21:10 -0000 Received: from gator886.hostgator.com (174.120.40.226) by gateway04.websitewelcome.com with SMTP; 2 Apr 2011 00:21:10 -0000 Received: from [50.39.76.146] (port=18161 helo=[10.140.5.11]) by gator886.hostgator.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Q5oal-000348-8E; Fri, 01 Apr 2011 19:21:27 -0500 Subject: [PATCH] s2255drv: atomic submit urb in completion handler From: Pete Eberlein To: "linux-media@vger.kernel.org" Cc: linux-dev@sensoray.com Date: Fri, 01 Apr 2011 17:21:26 -0700 Message-ID: <1301703686.9785.12.camel@pete-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator886.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sensoray.com X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: static-50-39-76-146.bvtn.or.frontiernet.net ([10.140.5.11]) [50.39.76.146]:18161 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index f5a46c4..85c3158 100644 --- a/drivers/media/video/s2255drv.c +++ b/drivers/media/video/s2255drv.c @@ -2406,7 +2406,7 @@ static void read_pipe_completion(struct urb *purb) read_pipe_completion, pipe_info); if (pipe_info->state != 0) { - if (usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL)) { + if (usb_submit_urb(pipe_info->stream_urb, GFP_ATOMIC)) { dev_err(&dev->udev->dev, "error submitting urb\n"); } } else {