diff options
| author | Chen-Yu Tsai <wenst@chromium.org> | 2026-02-10 18:03:34 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-02-23 09:25:48 +0100 |
| commit | 25723454f67980712234a42caca606b6710fd1e1 (patch) | |
| tree | ab1552949c1c0768a95e3e04a0a3536c353b5c3c /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 243307a0d1b0d01538e202c00454c28b21d4432e (diff) | |
wifi: mwifiex: Fix dev_alloc_name() return value check
dev_alloc_name() returns the allocated ID on success, which could be
over 0.
Fix the return value check to check for negative error codes.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/aYmsQfujoAe5qO02@stanley.mountain/
Fixes: 7bab5bdb81e3 ("wifi: mwifiex: Allocate dev name earlier for interface workqueue name")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://patch.msgid.link/20260210100337.1131279-1-wenst@chromium.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
