diff options
| author | Bitterblue Smith <rtl8821cerfe2@gmail.com> | 2025-12-24 02:25:32 +0300 |
|---|---|---|
| committer | Ping-Ke Shih <pkshih@realtek.com> | 2025-12-26 08:32:48 +0300 |
| commit | 2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d (patch) | |
| tree | bc36894449d138ef02aea288f5efb7255ec49564 /include/linux/workqueue.h | |
| parent | 0177aa828d966117ea30a44f2e1890fdb356118e (diff) | |
| download | linux-2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d.tar.xz | |
wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()
Simplify the code by using device managed memory allocations.
This also fixes a memory leak in rtw_register_hw(). The supported bands
were not freed in the error path.
Copied from commit 145df52a8671 ("wifi: rtw89: Convert
rtw89_core_set_supported_band to use devm_*").
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/1aa7fdef-2d5b-4a31-a4e9-fac8257ed30d@gmail.com
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
