public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RESEND] [PATCH] drivers/acpi/asus_acpi.c unsigned comparison
@ 2005-11-12 21:16 Gabriel A. Devenyi
  2005-11-16 19:52 ` Bjorn Helgaas
  0 siblings, 1 reply; 4+ messages in thread
From: Gabriel A. Devenyi @ 2005-11-12 21:16 UTC (permalink / raw)
  To: sziwan; +Cc: linux-kernel

It helps if I attach the patch.

proc_write_brn, and proc_write_disp both use a parameter "count" to store the result from parse_arg.
The return of parse_arg is an int, but count is declared as an unsigned int, and later checked versus zero,
which is meaningless. This patch fixes the declaration of count in both functions.

Thanks to LinuxICC (http://linuxicc.sf.net)

Signed-off-by: Gabriel A. Devenyi <ace@staticwave.ca>

diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index fec895a..9dfd0cd 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -748,7 +748,7 @@ proc_read_brn(char *page, char **start, 
 
 static int
 proc_write_brn(struct file *file, const char __user * buffer,
-	       unsigned long count, void *data)
+	       long count, void *data)
 {
 	int value;
 
@@ -798,7 +798,7 @@ proc_read_disp(char *page, char **start,
  */
 static int
 proc_write_disp(struct file *file, const char __user * buffer,
-		unsigned long count, void *data)
+		long count, void *data)
 {
 	int value;
 


-- 
Gabriel A. Devenyi
ace@staticwave.ca

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

end of thread, other threads:[~2005-11-17 21:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 21:16 [RESEND] [PATCH] drivers/acpi/asus_acpi.c unsigned comparison Gabriel A. Devenyi
2005-11-16 19:52 ` Bjorn Helgaas
2005-11-16 20:23   ` ICMP Ping being lost between kernel and the ping program Jesse Gordon
2005-11-17 21:35     ` ICMP Ping being lost between kernel and the ping program. (Solved!) Jesse Gordon

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