From patchwork Wed Dec 1 15:04:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 371451 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 oB1F4mGn018649 for ; Wed, 1 Dec 2010 15:04:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752443Ab0LAPEq (ORCPT ); Wed, 1 Dec 2010 10:04:46 -0500 Received: from mail-pv0-f174.google.com ([74.125.83.174]:51685 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753055Ab0LAPEp (ORCPT ); Wed, 1 Dec 2010 10:04:45 -0500 Received: by pva4 with SMTP id 4so1078618pva.19 for ; Wed, 01 Dec 2010 07:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=bTv0Qy8g7mMr+eGhbqjDAurQ5PK1EhoCgDgtsZrmMOQ=; b=Ku+xX8rCaC2aldnaxG1QnSRFB5FdnhpQpfr/tWIkluTLXMzSdrVe9U7rL/QVA70nyg TxBKBG8us0Zrv0yWpYKVd6BPj/QMqN46SKYnPAKASOEaXsU8rwQ5EdYNMy019bBqCbf4 tTuksY22hk261fC5AtBvbZz3in6y/8RdMYyTQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=vXfHDOIUvkS7a3Zzn9FAZ9RR5FrVLbRiZPDttfdYkM1zH+++mjHizHzf2kWOmmgalN EY41hhFpeLt+9F7PTyp9Iq/LEx83YXW0TkQG9UzTLvgyWGKHXGdB8wtGLHRizG6SXitt pFc9iJGXK8xfIKnLk7/gjK7Rf2MeODS/+GaPk= Received: by 10.142.75.11 with SMTP id x11mr8871885wfa.409.1291215884763; Wed, 01 Dec 2010 07:04:44 -0800 (PST) Received: from localhost.localdomain ([211.201.183.198]) by mx.google.com with ESMTPS id w42sm82083wfh.15.2010.12.01.07.04.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Dec 2010 07:04:44 -0800 (PST) From: Namhyung Kim To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] Input: xpad - fix memory leak Date: Thu, 2 Dec 2010 00:04:33 +0900 Message-Id: <1291215874-5625-1-git-send-email-namhyung@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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]); Wed, 01 Dec 2010 15:04:48 +0000 (UTC) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index f9fb7fa..f885902 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -955,6 +955,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id usb_fill_bulk_urb(xpad->bulk_out, udev, usb_sndbulkpipe(udev, ep_irq_in->bEndpointAddress), xpad->bdata, XPAD_PKT_LEN, xpad_bulk_out, xpad); + xpad->bulk_out->transfer_flags |= URB_FREE_BUFFER; } return 0;