summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>2026-09-21 19:51:11 +0530
committerJassi Brar <jassisinghbrar@gmail.com>2026-10-11 20:11:29 -0500
commit9ed2a451334aaf016dcbc9a0f2f26859c5969977 (patch)
treed2d65751aaf8bfffbbcce2c56bc0cd1ecc0be46f /scripts
parent7b3cc361b5942ac600f38e5dff7aed009be34964 (diff)
mailbox: qcom-ipcc: Use dev_name() as IRQ name instead of a static counter
qcom_ipcc_probe() uses a function-static int id incremented with plain id++ to generate unique IRQ names. Under async or deferred probe, two instances can probe concurrently and read the same value before either increments, producing duplicate IRQ names. The device already has a unique name assigned by the platform bus. Use dev_name(&pdev->dev) directly as the IRQ name. This eliminates the racy counter, the name buffer, and the devm_kasprintf() allocation entirely, while providing a more informative IRQ name in /proc/interrupts. Signed-off-by: Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions