All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] staging: bcm2835-audio: fix coding style issues
@ 2017-03-07 17:10 Aishwarya Pant
  2017-03-07 17:10 ` [PATCH v3 1/4] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Aishwarya Pant @ 2017-03-07 17:10 UTC (permalink / raw)
  To: Stephen Warren, Lee Jones, Eric Anholt, Greg Kroah-Hartman,
	Florian Fainelli, Ray Jui, Scott Branden,
	bcm-kernel-feedback-list
  Cc: outreachy-kernel

This patchset makes the following changes:
        - Replace kmalloc and memset with kzalloc
	- Replace null return value with PTR_ERR values
	- Propagate the PTR_ERR values forward instead of a hardcoded 
	  value for easier debugging
	- Replace if (success) else { } after kmalloc with if(error) 
	  to fail fast. Fix memory leak when queue_work fails.  
	  
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 (4):
  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

 .../vc04_services/bcm2835-audio/bcm2835-vchiq.c    | 98 +++++++++++-----------
 1 file changed, 50 insertions(+), 48 deletions(-)

-- 
2.7.4



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

end of thread, other threads:[~2017-03-07 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 17:10 [PATCH v3 0/4] staging: bcm2835-audio: fix coding style issues Aishwarya Pant
2017-03-07 17:10 ` [PATCH v3 1/4] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
2017-03-07 17:11 ` [PATCH v3 2/4] staging: bcm2835-audio: replace null with error pointer value Aishwarya Pant
2017-03-07 17:12 ` [PATCH v3 3/4] staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM Aishwarya Pant
2017-03-07 17:12 ` [PATCH v3 4/4] staging: bcm2835-audio: use conditional only for error case Aishwarya Pant
2017-03-07 17:17   ` [Outreachy kernel] " Julia Lawall
2017-03-07 17:20 ` [Outreachy kernel] [PATCH v3 0/4] staging: bcm2835-audio: fix coding style issues 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.