All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [Patch] Check unsigned < 0 in /drivers/net/acenic.c
@ 2005-12-16  0:05 Eric Sesterhenn / snakebyte
  2006-01-08 21:15 ` Alexey Dobriyan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Sesterhenn / snakebyte @ 2005-12-16  0:05 UTC (permalink / raw)
  To: kernel-janitors

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

hi,

since read_eeprom_byte() returns a negative value on an error
condition, tmp should be signed so the comparisons in line 1007
and 1017 can catch the error. 

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.15-rc5-git5/drivers/net/acenic.c.orig	2005-12-16 01:01:44.000000000 +0100
+++ linux-2.6.15-rc5-git5/drivers/net/acenic.c	2005-12-16 01:01:58.000000000 +0100
@@ -905,7 +905,8 @@ static int __devinit ace_init(struct net
 	struct pci_dev *pdev;
 	unsigned long myjif;
 	u64 tmp_ptr;
-	u32 tig_ver, mac1, mac2, tmp, pci_state;
+	u32 tig_ver, mac1, mac2, pci_state;
+	int tmp;
 	int board_idx, ecode = 0;
 	short i;
 	unsigned char cache_size;



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2006-01-11 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16  0:05 [KJ] [Patch] Check unsigned < 0 in /drivers/net/acenic.c Eric Sesterhenn / snakebyte
2006-01-08 21:15 ` Alexey Dobriyan
2006-01-09 14:25 ` Eric Sesterhenn / snakebyte
2006-01-11 15:55 ` Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.