aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/controller.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-08-20 08:44:08 +0000
committerUlf Hansson <[email protected]>2024-08-20 11:47:36 +0000
commita1e627af32ed60713941cbfc8075d44cad07f6dd (patch)
tree773e7ecbd92375991974b84283bfcd79b85c5081 /drivers/platform/surface/aggregator/controller.c
parentmmc: dw_mmc: allow biu and ciu clocks to defer (diff)
downloadkernel-a1e627af32ed60713941cbfc8075d44cad07f6dd.tar.gz
kernel-a1e627af32ed60713941cbfc8075d44cad07f6dd.zip
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: 2661081f5ab9 ("mmc_test: highmem tests") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions