Skip to content

Fix NULL pointer dereference and use struct_size

Gustavo A. R. Silva linux-arm-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Fix bug in patch 2/2 reported by kbuild test robot.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: integrator: impd1: fix NULL pointer dereferencearch/arm/mach-integrator/impd1.c+3 -00 replies
2/2ARM: integrator: impd1: use struct_size() in devm_kzalloc()arch/arm/mach-integrator/impd1.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix NULL pointer dereference and use struct_size

Hi,

The first patch in this series fixes a potential NULL pointer dereference by adding a NULL check. A tag for stable has been added for this patch.

The second patch promotes the use of struct_size() in devm_kzalloc().

Both issues were detected with the help of Coccinelle.

Thanks

Changes in v2:
- Fix bug in patch 2/2 reported by kbuild test robot.

Gustavo A. R. Silva (2):
ARM: integrator: impd1: fix NULL pointer dereference
ARM: integrator: impd1: use struct_size() in devm_kzalloc()

 arch/arm/mach-integrator/impd1.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.20.1