Skip to content

Replace kmalloc with kmalloc_array

Cristina Moraru outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: rtl8712: Replace kmalloc with kmalloc_arraydrivers/staging/rtl8712/rtl871x_mlme.c+2 -20 replies
2/3staging: octeon-usb: Replace kmalloc with kmalloc_arraydrivers/staging/octeon-usb/octeon-hcd.c+3 -30 replies
3/3staging: rdma: Replace kmalloc with kmalloc_arraydrivers/staging/rdma/amso1100/c2_provider.c drivers/staging/rdma/ipath/ipath_verbs.c+3 -30 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.

PatchDaniel Baluta
SeriesR-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.

Read the v1 thread

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