linux/arch/i386
KAMBAROV, ZAUR a8f5034540 [PATCH] coverity: i386: build.c: negative return to unsigned fix
Variable "c" was declared as an unsigned int, but used in:

125  		for (i=0 ; (c=read(fd, buf, sizeof(buf)))>0 ; i+=c )
126  			if (write(1, buf, c) != c)
127  				die("Write call failed");

(akpm: read() can return -1.  If it does, we fill the disk up with garbage).

Signed-off-by: Zaur Kambarov <zkambarov@coverity.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-28 21:20:33 -07:00
..
boot [PATCH] coverity: i386: build.c: negative return to unsigned fix 2005-06-28 21:20:33 -07:00
crypto [PATCH] arch/i386/crypto/aes.c: fix sparse warnings 2005-06-25 16:24:59 -07:00
kernel Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2005-06-27 22:07:56 -07:00
lib [PATCH] Remove i386_ksyms.c, almost. 2005-06-23 09:45:11 -07:00
mach-default [PATCH] x86_64: CPU hotplug support 2005-06-25 16:24:30 -07:00
mach-es7000 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-generic Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-visws [PATCH] i386: cleanup boot_cpu_logical_apicid variables 2005-06-25 16:25:05 -07:00
mach-voyager [PATCH] xen: x86: Rename usermode macro 2005-06-23 09:45:14 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] printk: arch/i386/mm/pgtable.c 2005-06-25 16:25:08 -07:00
oprofile [PATCH] xen: x86: Rename usermode macro 2005-06-23 09:45:14 -07:00
pci [PATCH] PCI: use the MCFG table to properly access pci devices (i386) 2005-06-27 21:52:47 -07:00
power [PATCH] swsusp: clean assembly parts 2005-06-25 16:24:33 -07:00
defconfig [PATCH] swsusp: kill config_pm_disk 2005-06-25 16:24:32 -07:00
Kconfig [PATCH] kdump: Kconfig 2005-06-25 16:24:53 -07:00
Kconfig.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] biarch compiler support for i386 2005-06-23 09:45:07 -07:00