Add str_alloc_free() helper
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 3 repliesIn review
- v22 patches 3 repliesSuperseded
- v12 patches 2 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lib/string_choices: Add str_alloc_free() helperinclude/ | +6 | 1 reply | |
| 2/3 | wifi: rtw89: Make use of str_alloc_free helperdrivers/ | +2 | 0 replies | |
| 3/3 | coccinelle: Add rules to find str_alloc_free() replacementsscripts/ | +38 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | mingzhu.wang |
|---|---|
| 1/3 | T-b |
| 2/3 | T-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] Add str_alloc_free() helper
Currently finds 4 locations:
./drivers/net/wireless/realtek/rtw89/fw.c:2557:7-12: opportunity for str_alloc_free(valid) ./drivers/net/wireless/realtek/rtw89/fw.c:2693:7-12: opportunity for str_alloc_free(valid) ./drivers/android/tests/binder_alloc_kunit.c:196:6-21: opportunity for str_alloc_free(alloc -> pages [ i ]) ./mm/slub.c:1634:3-8: opportunity for str_alloc_free(alloc)
Patch 3 is based on
https://lore.kernel.org/linux-hardening/CAHp75VdHY814NRfyUfWeqRd4-DwYzHGh25OTsUB5EFpRKpVQLQ@mail.gmail.com/T/#t.
---
Changes in v3: Add first user for this helper
Jiazi Li (3):
lib/string_choices: Add str_alloc_free() helper
wifi: rtw89: Make use of str_alloc_free helper
coccinelle: Add rules to find str_alloc_free() replacements
drivers/net/wireless/realtek/rtw89/fw.c | 4 +-- include/linux/string_choices.h | 6 ++++ scripts/coccinelle/api/string_choices.cocci | 38 +++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-)
Signature · 1 line
2.49.0