From patchwork Wed Dec 1 13:05:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 371161 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 oB1D5Dn4016639 for ; Wed, 1 Dec 2010 13:05:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755036Ab0LANFM (ORCPT ); Wed, 1 Dec 2010 08:05:12 -0500 Received: from mail-px0-f174.google.com ([209.85.212.174]:47610 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755034Ab0LANFL (ORCPT ); Wed, 1 Dec 2010 08:05:11 -0500 Received: by pxi15 with SMTP id 15so1061972pxi.19 for ; Wed, 01 Dec 2010 05:05:10 -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=jn3t6Tm6nfe56zvszAYjFcrcaErHLsy3YL/IwJTLuA0=; b=Hvtdy79woBh4He2u0o7yqdnMrcTCeq+GmeZtx/KbpPurCBZ314UB/CW7rYe0B25kna rLHfAsDBOQJcxGaLC02ABKZUAgPS0XDzg8cv2ZM0wpzg606XCbjS9u5upqEJoFqtpRJY 1LnhEWWKbc5EDiNPSzmO/TmdNsnCm4qco5sL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=APc4tEHrGW+LaffcgTcS3KnVxJqeBYfBIPYiglfKl6zZax1JtJUxn3/8S2mwhrR7A3 WYtIHFeKluEXFHowAbJK5mbPQLny2qRgNLC2+bnKMjYhow/TBwDRNXG1LqmlLSDT7S4w R4vjEX8npvVkFuk7pfj9tFxZS6yWPK/oHghew= Received: by 10.142.150.19 with SMTP id x19mr8666243wfd.189.1291208710710; Wed, 01 Dec 2010 05:05:10 -0800 (PST) Received: from localhost.localdomain ([211.201.183.198]) by mx.google.com with ESMTPS id b11sm10430057wff.9.2010.12.01.05.05.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Dec 2010 05:05:09 -0800 (PST) From: Namhyung Kim To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: turbografx - fix reference counting Date: Wed, 1 Dec 2010 22:05:01 +0900 Message-Id: <1291208701-3016-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 13:05:14 +0000 (UTC) diff --git a/drivers/input/joystick/turbografx.c b/drivers/input/joystick/turbografx.c index d53b9e9..27b6a3c 100644 --- a/drivers/input/joystick/turbografx.c +++ b/drivers/input/joystick/turbografx.c @@ -245,6 +245,7 @@ static struct tgfx __init *tgfx_probe(int parport, int *n_buttons, int n_devs) goto err_free_tgfx; } + parport_put_port(pp); return tgfx; err_free_dev: