diff options
| author | 2026-05-12 13:17:55 +0300 | |
|---|---|---|
| committer | 2026-05-19 19:49:57 +0530 | |
| commit | 94ac934d2c054fba4a22d8dc84749094c5fa0ec0 (patch) | |
| tree | 77f962202a9e589d50ed40982f376b95216650ee /tools/lib/python/kdoc/python_version.py | |
| parent | PCI: dwc: Use DEFINE_SHOW_ATTRIBUTE for ltssm_status debugfs (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/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
