diff options
| author | 2026-09-04 14:16:28 -0700 | |
|---|---|---|
| committer | 2026-09-14 16:52:28 +0200 | |
| commit | 27b084bdd009c5c82346d39d7773bab3191dd299 (patch) | |
| tree | c87f2ad817aede004ae1c8b262acd3f6721193c3 /scripts/Makefile.thinlto | |
| parent | wifi: wfx: fix error code on unsupported firmware (diff) | |
wifi: rt2x00: Use device-managed register buffers
The rt2x00 PCI and USB probe paths allocate EEPROM and RF storage with
plain kzalloc() and then free it from bus-specific teardown helpers. The
USB path also manages the CSR cache the same way. These buffers are
tied to the device lifetime, so the explicit free paths add probe and
disconnect cleanup without providing separate ownership.
Allocate the buffers with devm_kzalloc() before the mac80211 hardware is
allocated, then attach the resulting storage to struct rt2x00_dev after
the driver-private state exists. This lets driver detach and probe
failure rely on device-managed cleanup and removes the duplicated
bus-specific buffer freeing.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/20260904211628.83180-1-rosenp@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
