mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +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 <error27@gmail.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> |
History
|
|
|---|---|---|
| .. | ||
| block2mtd.c | ||
| doc2000.c | ||
| doc2001.c | ||
| doc2001plus.c | ||
| docecc.c | ||
| docprobe.c | ||
| Kconfig | ||
| lart.c | ||
| m25p80.c | ||
| Makefile | ||
| ms02-nv.c | ||
| ms02-nv.h | ||
| mtd_dataflash.c | ||
| mtdram.c | ||
| phram.c | ||
| pmc551.c | ||
| slram.c | ||
| sst25l.c | ||