linux-yocto/drivers/mmc/core
Dan Carpenter a1e627af32 mmc: mmc_test: Fix NULL dereference on allocation failure
If the "test->highmem = alloc_pages()" allocation fails then calling
__free_pages(test->highmem) will result in a NULL dereference.  Also
change the error code to -ENOMEM instead of returning success.

Fixes: 2661081f5a ("mmc_test: highmem tests")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/8c90be28-67b4-4b0d-a105-034dc72a0b31@stanley.mountain
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-08-20 13:47:36 +02:00
..
block.c block: move cache control settings out of queue->flags 2024-06-19 07:58:28 -06:00
block.h
bus.c mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
bus.h mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
card.h mmc: Add quirk MMC_QUIRK_BROKEN_CACHE_FLUSH for Micron eMMC Q2J54A 2023-11-03 12:01:32 +01:00
core.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
core.h
crypto.c
crypto.h
debugfs.c mmc: debugfs: add card entry for quirks 2024-04-02 12:25:08 +02:00
host.c mmc: core: Remove unused of_gpio.h 2024-04-02 12:21:38 +02:00
host.h
Kconfig
Makefile
mmc_ops.c
mmc_ops.h mmc: core: Add host specific tuning support for SD HS mode 2023-08-25 11:45:51 +02:00
mmc_test.c mmc: mmc_test: Fix NULL dereference on allocation failure 2024-08-20 13:47:36 +02:00
mmc.c mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
pwrseq_emmc.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq_sd8787.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq_simple.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq.c
pwrseq.h
queue.c block: move the stable_writes flag to queue_limits 2024-06-19 07:58:28 -06:00
queue.h block: move cache control settings out of queue->flags 2024-06-19 07:58:28 -06:00
quirks.h mmc: Add quirk MMC_QUIRK_BROKEN_CACHE_FLUSH for Micron eMMC Q2J54A 2023-11-03 12:01:32 +01:00
regulator.c
sd_ops.c mmc: core: Increase the timeout period of the ACMD41 command 2024-05-03 14:28:27 +02:00
sd_ops.h mmc: core: Add host specific tuning support for SD HS mode 2023-08-25 11:45:51 +02:00
sd.c mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
sd.h mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
sdio_bus.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
sdio.c mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
slot-gpio.c mmc: slot-gpio: Use irq_handler_t type 2024-04-26 06:47:04 +02:00
slot-gpio.h