alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ALSA: hda - Drop explicit memset() by reallocation with __GFP_ZERO
@ 2013-03-13 16:42 Takashi Iwai
  2013-03-13 16:42 ` [PATCH 2/3] ALSA: hda - Allow unlimited pins and converters in patch_hdmi.c Takashi Iwai
  2013-03-13 16:42 ` [PATCH 3/3] ALSA: hda - Don't apply EAPD power filter as default Takashi Iwai
  0 siblings, 2 replies; 3+ messages in thread
From: Takashi Iwai @ 2013-03-13 16:42 UTC (permalink / raw)
  To: alsa-devel

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/hda/hda_codec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 04b5738..a1c5053 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -5539,10 +5539,9 @@ void *snd_array_new(struct snd_array *array)
 		void *nlist;
 		if (snd_BUG_ON(num >= 4096))
 			return NULL;
-		nlist = krealloc(array->list, size, GFP_KERNEL);
+		nlist = krealloc(array->list, size, GFP_KERNEL | __GFP_ZERO);
 		if (!nlist)
 			return NULL;
-		memset(nlist + oldsize, 0, size - oldsize);
 		array->list = nlist;
 		array->alloced = num;
 	}
-- 
1.8.1.4

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

end of thread, other threads:[~2013-03-13 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 16:42 [PATCH 1/3] ALSA: hda - Drop explicit memset() by reallocation with __GFP_ZERO Takashi Iwai
2013-03-13 16:42 ` [PATCH 2/3] ALSA: hda - Allow unlimited pins and converters in patch_hdmi.c Takashi Iwai
2013-03-13 16:42 ` [PATCH 3/3] ALSA: hda - Don't apply EAPD power filter as default Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).