Replace kmalloc with kmalloc_array
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | staging: rtl8712: Replace kmalloc with kmalloc_arraydrivers/ | +2 | 0 replies | |
| 2/3 | staging: octeon-usb: Replace kmalloc with kmalloc_arraydrivers/ | +3 | 0 replies | |
| 3/3 | staging: rdma: Replace kmalloc with kmalloc_arraydrivers/ drivers/ | +3 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Daniel Baluta |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] Replace kmalloc with kmalloc_array
Replace kmalloc with specialized function kmalloc_array when the size is a multiplication of:
number_of_elements * size_of_element
Done with coccinelle:
@replace@
identifier a, b;
expression e, f;
@@
(
- a = kmalloc(e * f, b);
+ a = kmalloc_array(e, f, b);
)
Cristina Moraru (3):
staging: rtl8712: Replace kmalloc with kmalloc_array
staging: octeon-usb: Replace kmalloc with kmalloc_array
staging: rdma: Replace kmalloc with kmalloc_array
drivers/staging/octeon-usb/octeon-hcd.c | 6 +++--- drivers/staging/rdma/amso1100/c2_provider.c | 2 +- drivers/staging/rdma/ipath/ipath_verbs.c | 4 ++-- drivers/staging/rtl8712/rtl871x_mlme.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
1.9.1