mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
"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 <[email protected]> Acked-by: Anton Vorontsov <[email protected]> Signed-off-by: David Woodhouse <[email protected]>