mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Gabriel Devenyi <devenyga@mcmaster.ca>
Cc: vojtech@suse.cz, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Linux 2.5.68 - Fix gameport_close(gameport); after return in drivers/input/gameport/gameport.c
Date: Sun, 15 Jun 2003 00:49:55 +0200	[thread overview]
Message-ID: <20030615004955.A27599@ucw.cz> (raw)
In-Reply-To: <200305011610.07281.devenyga@mcmaster.ca>; from devenyga@mcmaster.ca on Thu, May 01, 2003 at 04:10:06PM -0400

On Thu, May 01, 2003 at 04:10:06PM -0400, Gabriel Devenyi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> This patch applies to 2.5.68, it is listed on kbugs.org. The gameport is never closed after calibrating it.
> 
> Please CC me with any discussion.

Thanks, applied.

> - ---FILE---
> 
> - --- linux-2.5.68/drivers/input/gameport/gameport.c	2003-04-19 22:49:31.000000000 -0400
> +++ linux-2.5.68-changed/drivers/input/gameport/gameport.c	2003-05-01 14:57:51.000000000 -0400
> @@ -84,6 +84,7 @@
>  		if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t;
>  	}
>  
> +	gameport_close(gameport);
>  	return 59659 / (tx < 1 ? 1 : tx);
>  
>  #else
> @@ -93,11 +94,10 @@
>  	j = jiffies; while (j == jiffies);
>  	j = jiffies; while (j == jiffies) { t++; gameport_read(gameport); }
>  
> +	gameport_close(gameport);
>  	return t * HZ / 1000;
>  
>  #endif
> - -
> - -	gameport_close(gameport);
>  }
>  
>  static void gameport_find_dev(struct gameport *gameport)
> 
> - ---ENFILE---
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> 
> iD8DBQE+sX8e7I5UBdiZaF4RAv8DAKCPpHLHADzNWUmRpHrHw7ldAfUdeACgklGx
> 9V+o3A+iUO8Jzb7T1Mr/6eU=
> =EABS
> -----END PGP SIGNATURE-----
> 

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

      reply	other threads:[~2003-06-14 22:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-01 20:10 Gabriel Devenyi
2003-06-14 22:49 ` Vojtech Pavlik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030615004955.A27599@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=devenyga@mcmaster.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®