diff options
author | Ammar Faizi <[email protected]> | 2022-07-25 20:49:11 +0300 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2022-07-27 13:20:20 +0300 |
commit | d578e0af3a003736f6c440188b156483d451b329 (patch) | |
tree | 4503ba2789114f3937a240f96ff2ff19a69d50ec /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 169ede1f594809d1f0f46d95c071d672dbfc0eb1 (diff) |
wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`
Commit 7a4836560a61 changes simple_write_to_buffer() with memdup_user()
but it forgets to change the value to be returned that came from
simple_write_to_buffer() call. It results in the following warning:
warning: variable 'rc' is uninitialized when used here [-Wuninitialized]
return rc;
^~
Remove rc variable and just return the passed in length if the
memdup_user() succeeds.
Cc: Dan Carpenter <[email protected]>
Reported-by: kernel test robot <[email protected]>
Fixes: 7a4836560a6198d245d5732e26f94898b12eb760 ("wifi: wil6210: debugfs: fix info leak in wil_write_file_wmi()")
Fixes: ff974e4083341383d3dd4079e52ed30f57f376f0 ("wil6210: debugfs interface to send raw WMI command")
Signed-off-by: Ammar Faizi <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions