From: Olaf Hering <olh@suse.de>
To: linux-kernel@vger.kernel.org
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>, Greg KH <greg@kroah.com>
Subject: linux-2.4 cset 1.736.3.2 breaks USB hubs , deadlock
Date: Fri, 1 Nov 2002 22:28:52 +0100 [thread overview]
Message-ID: <20021101222852.A5717@suse.de> (raw)
What shoud this patch fix?
It locks up my iBook when attaching an Apple USB keyboard. Other people
reported similar hangs.
Please revert it or find a better solution for 2.4.20.
----- Forwarded message from Olaf Hering <olaf@suse.de> -----
Date: Tue, 15 Oct 2002 06:05:51 +0200
Subject: Incoming changes to linux-2.4 cset 1.736.3.2 mandarine.suse.de:/olaf/sources/tree/linux-2.4
From: Olaf Hering <olaf@suse.de>
To: olh@suse.de
old status OK
ChangeSet
1.736.3.2 02/10/11 11:02:13 acme@conectiva.com.br +1 -0
[PATCH] 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.
drivers/usb/hid-input.c
1.3 02/10/09 18:26:11 acme@conectiva.com.br[greg] +1 -1
hid-input: fix find_next_zero_bit usage
.........................................................................
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.736.3.1 -> 1.736.3.2
# drivers/usb/hid-input.c 1.2 -> 1.3
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/11 acme@conectiva.com.br 1.736.3.2
# [PATCH] 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.
# --------------------------------------------
#
diff -Nru a/drivers/usb/hid-input.c b/drivers/usb/hid-input.c
--- a/drivers/usb/hid-input.c Tue Oct 15 06:05:50 2002
+++ b/drivers/usb/hid-input.c Tue Oct 15 06:05:50 2002
@@ -271,7 +271,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;
.........................................................................
----- End forwarded message -----
--
$ man Notes
BUGS
You need http://www.sauerstoff-laden.de/ soon...
next reply other threads:[~2002-11-01 21:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 21:28 Olaf Hering [this message]
2002-11-01 21:32 ` linux-2.4 cset 1.736.3.2 breaks USB hubs , deadlock Greg KH
2002-11-06 12:19 ` Marcelo Tosatti
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=20021101222852.A5717@suse.de \
--to=olh@suse.de \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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