* [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment @ 2025-06-10 12:24 Lucy Thrun 2025-06-10 12:24 ` [PATCH 2/2] ALSA: hda/ca0132: Fix possible buffer overflow with snprintf Lucy Thrun 2025-06-10 15:55 ` [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment Takashi Iwai 0 siblings, 2 replies; 3+ messages in thread From: Lucy Thrun @ 2025-06-10 12:24 UTC (permalink / raw) To: tiwai; +Cc: perex, linux-sound, lkp, Lucy Thrun | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202506100842.d8lwwdwU-lkp@intel.com/ Signed-off-by: Lucy Thrun <lucy.thrun@digital-rabbithole.de> --- sound/pci/hda/patch_ca0132.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index cfe422a79703..491d45d652dd 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -4385,8 +4385,8 @@ static int add_tuning_control(struct hda_codec *codec, knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ; - knew.tlv.c = 0; - knew.tlv.p = 0; + knew.tlv.c = NULL; + knew.tlv.p = NULL; switch (pnid) { case VOICE_FOCUS: knew.info = voice_focus_ctl_info; -- 2.45.1.windows.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ALSA: hda/ca0132: Fix possible buffer overflow with snprintf 2025-06-10 12:24 [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment Lucy Thrun @ 2025-06-10 12:24 ` Lucy Thrun 2025-06-10 15:55 ` [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment Takashi Iwai 1 sibling, 0 replies; 3+ messages in thread From: Lucy Thrun @ 2025-06-10 12:24 UTC (permalink / raw) To: tiwai; +Cc: perex, linux-sound, lkp, Lucy Thrun | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202506100642.95jpuMY1-lkp@intel.com/ Signed-off-by: Lucy Thrun <lucy.thrun@digital-rabbithole.de> --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 491d45d652dd..1904964591db 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -4410,7 +4410,7 @@ static int add_tuning_control(struct hda_codec *codec, } knew.private_value = HDA_COMPOSE_AMP_VAL(nid, 1, 0, type); - sprintf(namestr, "%s %s Volume", name, dirstr[dir]); + snprintf(namestr, sizeof(namestr), "%s %s Volume", name, dirstr[dir]); return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); } -- 2.45.1.windows.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment 2025-06-10 12:24 [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment Lucy Thrun 2025-06-10 12:24 ` [PATCH 2/2] ALSA: hda/ca0132: Fix possible buffer overflow with snprintf Lucy Thrun @ 2025-06-10 15:55 ` Takashi Iwai 1 sibling, 0 replies; 3+ messages in thread From: Takashi Iwai @ 2025-06-10 15:55 UTC (permalink / raw) To: Lucy Thrun; +Cc: tiwai, perex, linux-sound, lkp On Tue, 10 Jun 2025 14:24:37 +0200, Lucy Thrun wrote: > Thanks for the patch. But please put some proper patch description. An empty description is already a bad sign. There must be some reason to change the code as you proposed, and please explain it. > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: https://lore.kernel.org/oe-kbuild-all/202506100842.d8lwwdwU-lkp@intel.com/ Those tags should be put without the quite ("| "). thanks, Takashi ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-10 15:55 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-06-10 12:24 [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment Lucy Thrun 2025-06-10 12:24 ` [PATCH 2/2] ALSA: hda/ca0132: Fix possible buffer overflow with snprintf Lucy Thrun 2025-06-10 15:55 ` [PATCH 1/2] ALSA: hda/ca0132: Use NULL instead of 0 for pointer assignment Takashi Iwai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox