mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
[ Upstream commit 4a81f78caa53e0633cf311ca1526377d9bff7479 ]
In the do_validate_mem(), the call to add_interval() does not
handle errors. If kmalloc() fails in add_interval(), it could
result in a null pointer being inserted into the linked list,
leading to illegal memory access when sub_interval() is called
next.
This patch adds an error handling for the add_interval(). If
add_interval() returns an error, the function will return early
with the error code.
Fixes:
|
||
|---|---|---|
| .. | ||
| bcm63xx_pcmcia.c | ||
| bcm63xx_pcmcia.h | ||
| cardbus.c | ||
| cirrus.h | ||
| cistpl.c | ||
| cs_internal.h | ||
| cs.c | ||
| db1xxx_ss.c | ||
| ds.c | ||
| electra_cf.c | ||
| i82092.c | ||
| i82092aa.h | ||
| i82365.c | ||
| i82365.h | ||
| Kconfig | ||
| Makefile | ||
| max1600.c | ||
| max1600.h | ||
| o2micro.h | ||
| omap_cf.c | ||
| pcmcia_cis.c | ||
| pcmcia_resource.c | ||
| pd6729.c | ||
| pd6729.h | ||
| pxa2xx_base.c | ||
| pxa2xx_base.h | ||
| pxa2xx_sharpsl.c | ||
| ricoh.h | ||
| rsrc_iodyn.c | ||
| rsrc_mgr.c | ||
| rsrc_nonstatic.c | ||
| sa11xx_base.c | ||
| sa11xx_base.h | ||
| sa1100_generic.c | ||
| sa1100_generic.h | ||
| sa1100_h3600.c | ||
| sa1111_generic.c | ||
| sa1111_generic.h | ||
| sa1111_jornada720.c | ||
| sa1111_neponset.c | ||
| soc_common.c | ||
| soc_common.h | ||
| socket_sysfs.c | ||
| tcic.c | ||
| tcic.h | ||
| ti113x.h | ||
| topic.h | ||
| vg468.h | ||
| xxs1500_ss.c | ||
| yenta_socket.c | ||
| yenta_socket.h | ||