Skip to contentSkip to conversation

seq_file damage still not fixed in 2.5.63

PATCH Pavel Machek 1 participant 1 message Feb 24, 2003 ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

...this patch was dropped on the floor somewhere. Please apply,

Pavel

drivers/acpi/processor.c +4 -2
@@ -1356,7 +1356,8 @@
         loff_t			*data)
 {
 	int			result = 0;
-	struct acpi_processor	*pr = (struct acpi_processor *) data;
+        struct seq_file 	*m = (struct seq_file *)file->private_data;
+	struct acpi_processor	*pr = (struct acpi_processor *)m->private;
 	char			state_string[12] = {'\0'};
 
 	ACPI_FUNCTION_TRACE("acpi_processor_write_throttling");
@@ -1418,7 +1419,8 @@
 	loff_t			*data)
 {
 	int			result = 0;
-	struct acpi_processor	*pr = (struct acpi_processor *) data;
+        struct seq_file 	*m = (struct seq_file *)file->private_data;
+	struct acpi_processor	*pr = (struct acpi_processor *)m->private;
 	char			limit_string[25] = {'\0'};
 	int			px = 0;
 	int			tx = 0;
Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]