summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBinbin Zhou <zhoubinbin@loongson.cn>2026-08-18 17:34:48 +0800
committerVinod Koul <vkoul@kernel.org>2026-09-10 18:19:59 +0530
commitbf27ec04a888d4f1301a8da040719f2c332da681 (patch)
tree12276fa99bb27a2eb82de2fbe18b347d3eed62a4 /tools/perf/scripts/python
parent152fd3f4a2456221abb5b07e1682ca8a0b7798bb (diff)
downloadlinux-next-bf27ec04a888d4f1301a8da040719f2c332da681.tar.gz
linux-next-bf27ec04a888d4f1301a8da040719f2c332da681.zip
dmaengine: loongson: loongson2-apb-cmc: Fix signedness bug in irq handling
Storing that negative value into an unsigned variable makes the check `if (lchan->irq < 0)` always false, so probe errors are not correctly detected and propagated. Fix this by changing the type of `irq` to `int`, which allows proper signed comparison and error handling. Fixes: 1c0028e725f1 ("dmaengine: loongson: New driver for the Loongson Multi-Channel DMA controller") Reported-by: Julia Lawall <julia.lawall@inria.fr> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202608152230.p20WPlS0-lkp@intel.com/ Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://patch.msgid.link/20260818093448.3597016-1-zhoubinbin@loongson.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions