public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Arnaldo Carvalho de Melo <acme@conectiva.com.br>,
	Vojtech Pavlik <vojtech@suse.cz>,
	Greg Kroah-Hartman <greg@kroah.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] hid-input: fix find_next_zero_bit usage
Date: Thu, 10 Oct 2002 09:13:42 +0200	[thread overview]
Message-ID: <20021010091342.A7637@ucw.cz> (raw)
In-Reply-To: <20021010045002.GI12775@conectiva.com.br>; from acme@conectiva.com.br on Thu, Oct 10, 2002 at 01:50:02AM -0300

On Thu, Oct 10, 2002 at 01:50:02AM -0300, Arnaldo Carvalho de Melo wrote:

> Hi Vojtech,
> 
> 	Please apply this changeset, comments below, and this has to be
> applied to both 2.4 and 2.5.
> 
> - Arnaldo

Ok, added it to my repository. Greg, will you please take care of 2.4?

> 
> You can import this changeset into BK by piping this whole message to:
> '| bk receive [path to repository]' or apply the patch as usual.
> 
> ===================================================================
> 
> 
> ChangeSet@1.747, 2002-10-10 01:22:17-03:00, acme@dhcp197.conectiva
>   o hid-input: fix find_next_zero_bit usage
>   
>   It was swapping the parameters, using the bitfield size for the
>   offset and the offset for the bitfield size. With this the mouse
>   buttons in my wireless USB keyboard finally works 8) 2.4 has the
>   same problem.
> 
> 
>  hid-input.c |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff -Nru a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
> --- a/drivers/usb/input/hid-input.c	Thu Oct 10 01:26:11 2002
> +++ b/drivers/usb/input/hid-input.c	Thu Oct 10 01:26:11 2002
> @@ -348,7 +348,7 @@
>  	set_bit(usage->type, input->evbit);
>  
>  	while (usage->code <= max && test_and_set_bit(usage->code, bit)) {
> -		usage->code = find_next_zero_bit(bit, max + 1, usage->code);
> +		usage->code = find_next_zero_bit(bit, usage->code, max + 1);
>  	}
>  
>  	if (usage->code > max) return;
> 
> ===================================================================

-- 
Vojtech Pavlik
SuSE Labs

  reply	other threads:[~2002-10-10  7:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10  4:50 [PATCH] hid-input: fix find_next_zero_bit usage Arnaldo Carvalho de Melo
2002-10-10  7:13 ` Vojtech Pavlik [this message]
2002-10-10  7:20   ` Greg KH

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=20021010091342.A7637@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=acme@conectiva.com.br \
    --cc=greg@kroah.com \
    --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