From: Aishwarya Pant <aishpant@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: gregkh@linuxfoundation.org
Subject: [PATCH v2 0/3] staging: bcm2835-camera: fix coding style issues
Date: Fri, 10 Mar 2017 00:30:03 +0530 [thread overview]
Message-ID: <cover.1489085851.git.aishpant@gmail.com> (raw)
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(-)
--
2.7.4
next reply other threads:[~2017-03-09 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 19:00 Aishwarya Pant [this message]
2017-03-09 19:00 ` [PATCH v2 1/3] staging: bcm2835-camera: add check to avoid null pointer dereference Aishwarya Pant
2017-03-09 19:01 ` [PATCH v2 2/3] staging: bcm2835-camera: replace kmalloc with kzalloc Aishwarya Pant
2017-03-09 19:01 ` [PATCH v2 3/3] staging: bcm2835-camera: use kernel preferred style for handling errors Aishwarya Pant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1489085851.git.aishpant@gmail.com \
--to=aishpant@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.