Files
linux-legacy/drivers/mtd
Dan Carpenter b3c3af1ac7 mtd/m25p80: fix test for end of loop
"plat_id" is always non-NULL here.  There is a zero element on the end
of the m25p_ids[] array and if we hit the end of the loop then plat_id
points to that.

This would lead to a NULL pointer dereference later on in the function.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-12-03 07:42:24 -06:00
..
2008-06-04 17:50:17 +01:00
2008-06-04 17:50:17 +01:00
2009-09-03 14:59:16 +01:00