All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aishwarya Pant <aishpant@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: [PATCH v4 0/8] staging: bcm2835-audio: fix coding style issues
Date: Wed, 8 Mar 2017 20:18:34 +0530	[thread overview]
Message-ID: <cover.1488984315.git.aishpant@gmail.com> (raw)

This patch has the following fixes:

-- Replace kmalloc and memset with kzalloc vc_vchi_audio_init(..)
-- Replace null return value with PTR_ERR(..) values in
   vc_vchi_audio_init(..)
-- Propagate the PTR_ERR values forward instead of a hardcoded
   value for easier debugging in bcm2835_audio_open_connection(..)
-- Replace if (success) else { } after kmalloc with if(error)
   to fail fast in the work function
-- De-allocate 'work' when queue_work(..) fails in the work
   functions
-- Add current function names __func__ to debug and error logs in the
   work functions
-- De-allocate 'vchi_instance' when VCHI connection fails or VCHI audio 
   instance initialisation fails in bcm2835_audio_open_connection()
-- Remove BUG_ON() in bcm2835_audio_open_connection()


Changes in v4:
-- Break-up patch 4 into four smaller patches
-- Add a patch proposing removal of BUG_ON()
-- Make the cover letter verbose

Changes in v3:
-- Fix memory leak when queue_work fails
-- Add __func__ to debug logs

Changes in v2:
-- Return error value -EBUSY instead of -1 when queue_work()
   fails


Aishwarya Pant (8):
  staging: bcm2835-audio: Replace kmalloc with kzalloc
  staging: bcm2835-audio: replace null with error pointer value
  staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM
  staging: bcm2835-audio: use conditional only for error case
  staging: bcm2835-audio: deallocate work when queue_work(...) fails
  staging: bcm2835-audio: Add function name to debug and error logs
  staging: bcm2835-audio: fix memory leak in    
    bcm2835_audio_open_connection()
  staging: bcm2835-audio: remove BUG_ON() in
    bcm2835_audio_open_connection()

 .../vc04_services/bcm2835-audio/bcm2835-vchiq.c    | 109 +++++++++++----------
 1 file changed, 56 insertions(+), 53 deletions(-)

-- 
2.7.4



             reply	other threads:[~2017-03-08 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08 14:48 Aishwarya Pant [this message]
2017-03-08 14:48 ` [PATCH v4 1/8] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
2017-03-08 14:49 ` [PATCH v4 2/8] staging: bcm2835-audio: replace null with error pointer value Aishwarya Pant
2017-03-08 14:49 ` [PATCH v4 3/8] staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM Aishwarya Pant
2017-03-08 14:49 ` [PATCH v4 4/8] staging: bcm2835-audio: use conditional only for error case Aishwarya Pant
2017-03-08 14:49 ` [PATCH v4 5/8] staging: bcm2835-audio: deallocate work when queue_work(...) fails Aishwarya Pant
2017-03-08 14:49 ` [PATCH v4 6/8] staging: bcm2835-audio: Add function name to debug and error logs Aishwarya Pant
2017-03-09 10:17   ` Aishwarya Pant
2017-03-08 14:50 ` [PATCH v4 7/8] staging: bcm2835-audio: fix memory leak in bcm2835_audio_open_connection() Aishwarya Pant
2017-03-08 14:50 ` [PATCH v4 8/8] staging: bcm2835-audio: remove BUG_ON() " 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.1488984315.git.aishpant@gmail.com \
    --to=aishpant@gmail.com \
    --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.