linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix sysfs bogosity in i82365.c
@ 2003-06-22  1:51 Arnaldo Carvalho de Melo
  0 siblings, 0 replies; only message in thread
From: Arnaldo Carvalho de Melo @ 2003-06-22  1:51 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel Mailing List

Hi Linus,

	Please consider applying, it was using a non-existent socket[] index
and not doing it for all sockets.

	Without this, forget about using i82365, crashes on boot :-)

- Arnaldo

===== drivers/pcmcia/i82365.c 1.36 vs edited =====
--- 1.36/drivers/pcmcia/i82365.c	Sun Jun 15 12:20:52 2003
+++ edited/drivers/pcmcia/i82365.c	Sat Jun 21 22:09:08 2003
@@ -1471,6 +1471,10 @@
 			    pcmcia_unregister_socket(&socket[i].socket);
 		    break;
 	    }
+	   class_device_create_file(&socket[i].socket.dev,
+			   	    &class_device_attr_info);
+	   class_device_create_file(&socket[i].socket.dev,
+			   	    &class_device_attr_exca);
     }
 
     /* Finally, schedule a polling interrupt */
@@ -1481,9 +1485,6 @@
     	poll_timer.expires = jiffies + poll_interval;
 	add_timer(&poll_timer);
     }
-
-    class_device_create_file(&socket[i].socket.dev, &class_device_attr_info);
-    class_device_create_file(&socket[i].socket.dev, &class_device_attr_exca);
     
     return 0;
     

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-22  1:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-22  1:51 [PATCH] fix sysfs bogosity in i82365.c Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).