Skip to content

staging: bcm2835-camera: fix coding style issues

Aishwarya Pant outreachy 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

-- Fix null dereference issue (ouch!)
-- Rebase from origin

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: bcm2835-camera: add check to avoid null pointer dereferencedrivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c+8 -20 replies
2/3staging: bcm2835-camera: replace kmalloc with kzallocdrivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c+3 -50 replies
3/3staging: bcm2835-camera: use kernel preferred style for handling errorsdrivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c+6 -60 replies

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/3] staging: bcm2835-camera: fix coding style issues

This patchset fixes the following issues:

[1] Added null check after memory allocation to avoid a possible null pointer dereference
[2] Replaced instances of kmalloc and memset with a kzalloc
[3] Replaced null error return values with kernel preferred error return values i.e. return ERR_PTR(-ENOMEM) instead of NULL

Changes in v2:
-- Fix null dereference issue (ouch!)
-- Rebase from origin

Aishwarya Pant (3):
staging: bcm2835-camera: add check to avoid null pointer dereference
staging: bcm2835-camera: replace kmalloc with kzalloc
staging: bcm2835-camera: use kernel preferred style for handling
errors

 .../vc04_services/bcm2835-camera/mmal-vchiq.c      | 24 +++++++++++++---------
 1 file changed, 14 insertions(+), 10 deletions(-)
Signature · 1 line
2.7.4