All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/7] staging: bcm2835-audio: clean-up coding style issues
@ 2017-03-10 15:57 Aishwarya Pant
  2017-03-10 15:58 ` [PATCH v6 1/7] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Aishwarya Pant @ 2017-03-10 15:57 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

[1] Replace kmalloc and memset with kzalloc in vc_vchi_audio_init(..)
[2] Replace null return value with PTR_ERR(..) values 
    in vc_vchi_audio_init(..)
[3] Propagate the PTR_ERR values forward instead of a hardcoded 
    value for easier debugging in bcm2835_audio_open_connection(..)
[4] Replace if (success) else { } after kmalloc with if(error)
    to fail fast in the work function
[5] De-allocate 'work' when queue_work(..) fails in the work 
    functions
[6] De-allocate 'vchi_instance' when VCHI connection fails or VCHI audio
    instance initialisation fails in bcm2835_audio_open_connection()
[7] Remove BUG_ON() in bcm2835_audio_open_connection()


Changes in v6:
-- Add a local variable ret to set error value instead of
  returning -EPERM when initialisation of vchi_audio_service fails
  in bcm2835_audio_open_connection()

Changes in v5:
-- Remove patch which added function names to log messages

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 (7):
  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: 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    | 103 ++++++++++-----------
 1 file changed, 49 insertions(+), 54 deletions(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-03-12 14:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-10 15:57 [PATCH v6 0/7] staging: bcm2835-audio: clean-up coding style issues Aishwarya Pant
2017-03-10 15:58 ` [PATCH v6 1/7] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
2017-03-10 15:59 ` [PATCH v6 2/7] staging: bcm2835-audio: replace null with error pointer value Aishwarya Pant
2017-03-10 15:59 ` [PATCH v6 3/7] staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM Aishwarya Pant
2017-03-10 16:00 ` [PATCH v6 4/7] staging: bcm2835-audio: use conditional only for error case Aishwarya Pant
2017-03-10 16:00 ` [PATCH v6 5/7] staging: bcm2835-audio: deallocate work when queue_work(...) fails Aishwarya Pant
2017-03-10 16:01 ` [PATCH v6 6/7] staging: bcm2835-audio: fix memory leak in bcm2835_audio_open_connection() Aishwarya Pant
2017-03-10 21:30   ` [Outreachy kernel] " Julia Lawall
2017-03-12 14:11   ` Greg KH
2017-03-10 16:02 ` [PATCH v6 7/7] staging: bcm2835-audio: remove BUG_ON() " Aishwarya Pant
2017-03-10 21:09   ` [Outreachy kernel] " Julia Lawall
2017-03-10 21:17   ` Julia Lawall

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.