aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-01-07 03:35:16 +0000
committerRafael J. Wysocki <[email protected]>2022-01-11 15:35:41 +0000
commit2cea3ec5b0099d0e9dd6752aa86e08bce38d6b32 (patch)
treebcc7205e53999ec0890217c3af61ecc87cda71bb /lib/test_overflow.c
parentMerge tag 'acpi-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ra... (diff)
downloadkernel-2cea3ec5b0099d0e9dd6752aa86e08bce38d6b32.tar.gz
kernel-2cea3ec5b0099d0e9dd6752aa86e08bce38d6b32.zip
ACPI: APD: Check for NULL pointer after calling devm_ioremap()
Because devres_alloc() may fail, devm_ioremap() may return NULL. Then, 'clk_data->base' will be assigned to clkdev->data->base in platform_device_register_data(). The PTR_ERR_OR_ZERO() check on clk_data does not cover 'base', so it is better to add an explicit check against NULL after updating it. Fixes: 3f4ba94e3615 ("ACPI: APD: Add AMD misc clock handler support") Signed-off-by: Jiasheng Jiang <[email protected]> [ rjw: Changelog rewrite ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions