public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Trivial fix for hid-tmff driver
@ 2004-04-29 19:26 Zinx Verituse
  2004-04-29 19:41 ` Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: Zinx Verituse @ 2004-04-29 19:26 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Well, this has been a problem for quite some time due to a change in
the list code way back when, and my mails don't seem to be getting
through to Vojtech Pavlik, so here's the patch..  The problem may still
exist in the other drivers..

-- 
Zinx Verituse                                    http://zinx.xmms.org/

[-- Attachment #2: linux-2.6.5-hid-tmff.diff --]
[-- Type: text/plain, Size: 587 bytes --]

diff -ru linux-2.6.5.orig/drivers/usb/input/hid-tmff.c linux-2.6.5/drivers/usb/input/hid-tmff.c
--- linux-2.6.5.orig/drivers/usb/input/hid-tmff.c	2003-10-25 13:43:59.000000000 -0500
+++ linux-2.6.5/drivers/usb/input/hid-tmff.c	2003-12-18 01:00:41.000000000 -0600
@@ -110,7 +110,7 @@
 {
 	struct tmff_device *private;
 	struct list_head *pos;
-	struct hid_input *hidinput = list_entry(&hid->inputs, struct hid_input, list);
+	struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
 
 	private = kmalloc(sizeof(struct tmff_device), GFP_KERNEL);
 	if (!private)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Trivial fix for hid-tmff driver
  2004-04-29 19:26 [PATCH] Trivial fix for hid-tmff driver Zinx Verituse
@ 2004-04-29 19:41 ` Vojtech Pavlik
  0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2004-04-29 19:41 UTC (permalink / raw)
  To: Zinx Verituse; +Cc: linux-kernel

On Thu, Apr 29, 2004 at 02:26:56PM -0500, Zinx Verituse wrote:
> Well, this has been a problem for quite some time due to a change in
> the list code way back when, and my mails don't seem to be getting
> through to Vojtech Pavlik, so here's the patch..  The problem may still
> exist in the other drivers..

I'll get it into my tree asap.

> 
> -- 
> Zinx Verituse                                    http://zinx.xmms.org/

> diff -ru linux-2.6.5.orig/drivers/usb/input/hid-tmff.c linux-2.6.5/drivers/usb/input/hid-tmff.c
> --- linux-2.6.5.orig/drivers/usb/input/hid-tmff.c	2003-10-25 13:43:59.000000000 -0500
> +++ linux-2.6.5/drivers/usb/input/hid-tmff.c	2003-12-18 01:00:41.000000000 -0600
> @@ -110,7 +110,7 @@
>  {
>  	struct tmff_device *private;
>  	struct list_head *pos;
> -	struct hid_input *hidinput = list_entry(&hid->inputs, struct hid_input, list);
> +	struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
>  
>  	private = kmalloc(sizeof(struct tmff_device), GFP_KERNEL);
>  	if (!private)


-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-29 19:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-29 19:26 [PATCH] Trivial fix for hid-tmff driver Zinx Verituse
2004-04-29 19:41 ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox