[PATCH] gen_probe forgets to clean chip_map

Thomas Gleixner tglx at linutronix.de
Sat Jul 3 10:37:04 EDT 2004


On Saturday 03 July 2004 13:03, Robert Schwebel wrote:
> ----------8<----------
> diff -urN mtd-20040622-1/drivers/mtd/chips/gen_probe.c
> mtd-20040622-1-ptx1/drivers/mtd/chips/gen_probe.c ---
> mtd-20040622-1/drivers/mtd/chips/gen_probe.c	2003-11-09 00:00:04.000000000
> +0100 +++ mtd-20040622-1-ptx1/drivers/mtd/chips/gen_probe.c	2004-06-25
> 14:38:28.000000000 +0200 @@ -114,6 +114,7 @@
>  		kfree(cfi.cfiq);
>  		return NULL;
>  	}
> +	memset(chip_map, 0, ((max_chips / 8) + ((max_chips % 8) ? 1 : 0)));
>
>  	set_bit(0, chip_map); /* Mark first chip valid */

Thanks, fixed due to your previous suggestion since 06-24 in CVS

-- 
Thomas
_____________________________________________________________________
From slash dot org
"When customers are visiting, engineers are not allowed to wear ties. 
That way the customer can tell who is the engineer and who is the 
salesman (and therefore whom to believe.). Ties cut off blood flow 
to the brain, making it easier for the salesmen to do their jobs." 
_____________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de





More information about the linux-mtd mailing list