mbox series

[0/5] ALSA: Fix remaining NULL device with memory allocations

Message ID 20190204134222.9560-1-tiwai@suse.de (mailing list archive)
Headers show
Series ALSA: Fix remaining NULL device with memory allocations | expand

Message

Takashi Iwai Feb. 4, 2019, 1:42 p.m. UTC
Hi,

this patchset covers the still remaining drivers calling the memory
allocation with NULL device pointer.  Simply card->dev is passed
there.


Mark, two of them are trivial fixes for ASoC, and I'd like to merge
them through my tree, since the last patch adds an explicit WARN_ON().
Give me Ack's if they are OK.


thanks,

Takashi

===

Takashi Iwai (5):
  ALSA: x86: Avoid passing NULL to memory allocators
  ALSA: arm: Avoid passing NULL to memory allocators
  ASoC: amd: Avoid passing NULL to memory allocators
  ASoC: sh: Avoid passing NULL to memory allocators
  ALSA: core: Don't allow NULL device for memory allocation

 sound/arm/aaci.c                    | 3 ++-
 sound/core/memalloc.c               | 2 ++
 sound/soc/amd/raven/acp3x-pcm-dma.c | 3 ++-
 sound/soc/sh/siu_pcm.c              | 2 +-
 sound/x86/intel_hdmi_audio.c        | 3 ++-
 5 files changed, 9 insertions(+), 4 deletions(-)

Comments

Christoph Hellwig Feb. 4, 2019, 3:50 p.m. UTC | #1
On Mon, Feb 04, 2019 at 02:42:17PM +0100, Takashi Iwai wrote:
> Hi,
> 
> this patchset covers the still remaining drivers calling the memory
> allocation with NULL device pointer.  Simply card->dev is passed
> there.
> 
> 
> Mark, two of them are trivial fixes for ASoC, and I'd like to merge
> them through my tree, since the last patch adds an explicit WARN_ON().
> Give me Ack's if they are OK.

Thanks a lot for doing this work!

Acked-by: Christoph Hellwig <hch@lst.de>