aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorAnshuman Khandual <[email protected]>2023-08-17 09:29:26 +0530
committerSuzuki K Poulose <[email protected]>2023-08-17 11:49:21 +0100
commita4621fd1d4fd04fe2d8105a4d64e85cdc4a259b1 (patch)
treeb9fe3ca2a78d91e8b928392b90101f095bb005d9 /lib/test_fortify/write_overflow-strncpy.c
parent39744738a67de9153d73e11817937c0004feab2e (diff)
coresight: etm4x: Ensure valid drvdata and clock before clk_put()
This validates 'drvdata' and 'drvdata->pclk' clock before calling clk_put() in etm4_remove_platform_dev(). The problem was detected using Smatch static checker as reported. Fixes: 73d779a03a76a ("coresight: etm4x: Change etm4_platform_driver driver for MMIO devices") Cc: Suzuki K Poulose <[email protected]> Cc: Mike Leach <[email protected]> Cc: James Clark <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Reported-by: Dan Carpenter <[email protected]> Closes: https://lists.linaro.org/archives/list/[email protected]/thread/G4N6P4OXELPLLQSNU3GU2MR4LOLRXRMJ/ Reviewed-by: James Clark <[email protected]> Reviewed-by: Mike Leach <[email protected]> Signed-off-by: Anshuman Khandual <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions