diff options
| author | Dan Carpenter <error27@gmail.com> | 2026-05-12 13:17:55 +0300 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2026-05-19 19:49:57 +0530 |
| commit | 94ac934d2c054fba4a22d8dc84749094c5fa0ec0 (patch) | |
| tree | 77f962202a9e589d50ed40982f376b95216650ee /tools/perf/scripts/python/bin | |
| parent | d25f1dd6b986070e2324bf373097f0fced1e57e1 (diff) | |
PCI: dwc: Fix signedness bug in fault injection test code
The kstrtou32() function returns negative error code or zero on success.
However, in this case "val" is a u32 and the function returns signed long,
so negative error codes from kstrtou32() are returned as high positive
values.
Store the error code in an int instead.
Fixes: d20ee8e2dbd6 ("PCI: dwc: Add debugfs based Error Injection support for DWC")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Hans Zhang <18255117159@163.com>
Link: https://patch.msgid.link/agL-Uwfn26SI4Gb0@stanley.mountain
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
