summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/task-analyzer-report
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2026-10-03 16:27:52 +0800
committerJarkko Sakkinen <jarkko@kernel.org>2026-10-23 00:59:20 +0300
commit1900449684cf71427a51e0bb1d7914c0c8b39152 (patch)
treeaeecc65be544bebad58a667ccf50f5712c38bbf8 /tools/perf/scripts/python/bin/task-analyzer-report
parent7d4f1cbfe063af5581dac66abe9e9c965e1031cc (diff)
tpm: tpm_nsc: fix NULL pointer dereference on init failure
tpm_nsc_remove() is used as the release callback of the hand-created platform device and dereferences the chip drvdata unconditionally. If init fails before tpmm_chip_alloc() (e.g. request_region() cannot claim the ports), the error path drops the last device reference and the release callback runs with chip == NULL, crashing module init. Return early when the chip has not been created yet. Cc: stable@vger.kernel.org Fixes: afb5abc262e9 ("tpm: two-phase chip management functions") Assisted-by: GLM-5.3 Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/d5f0b38d6d6c17c01519c879d26448dbae388b0e.1791015549.git.xiaopei01@kylinos.cn Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions