From: nickel@altlinux.org
To: devel-kernel@lists.altlinux.org
Cc: Vasiliy Kovalev <kovalev@altlinux.org>
Subject: [d-kernel] [PATCH 2/6] ASoC: Intel: sof_es8336: added protection against dereference of the null pointer before calling the string comparison function.
Date: Tue, 2 Aug 2022 20:21:36 +0300
Message-ID: <20220802172140.226880-3-nickel@altlinux.org> (raw)
In-Reply-To: <20220802172140.226880-1-nickel@altlinux.org>
From: Vasiliy Kovalev <kovalev@altlinux.org>
Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
---
sound/soc/intel/boards/sof_es8336.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
index 0eb8ab0081463..2e91de34018f9 100644
--- a/sound/soc/intel/boards/sof_es8336.c
+++ b/sound/soc/intel/boards/sof_es8336.c
@@ -233,7 +233,7 @@ static int sof_es8336_quirk_cb(const struct dmi_system_id *id)
if (quirk & SOF_ES8336_TGL_GPIO_QUIRK)
gpio_mapping = quirk_acpi_es8336_gpios;
- if (strcmp(id->ident, "pa-enable ACPI deviant") == 0) {
+ if (id->ident != NULL && strcmp(id->ident, "pa-enable ACPI deviant") == 0) {
if (quirk_pa_enable < 0) quirk_pa_enable = 1;
else quirk_pa_enable++;
}
--
2.33.3
next prev parent reply other threads:[~2022-08-02 17:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 17:21 [d-kernel] [PATCH 0/6] ASoC: Intel: sof_es8336: add support for more laptop models in 5.15 nickel
2022-08-02 17:21 ` [d-kernel] [PATCH 1/6] ASoC: Intel: sof_es8336: add more DMI info for pa-enable lookup quirk for CNL-LP models nickel
2022-08-02 17:21 ` nickel [this message]
2022-08-02 17:21 ` [d-kernel] [PATCH 3/6] ASoC: Intel: sof_es8336: add Aquarius Cmp NS685U R11 DMI info for pa-enable lookup quirk nickel
2022-08-02 17:21 ` [d-kernel] [PATCH 4/6] ASoC: Intel: sof_es8336: add 3Logic Group Graviton N15i " nickel
2022-08-02 17:21 ` [d-kernel] [PATCH 5/6] ASoC: Intel: sof_es8336: simplify pa_enable quirk trigger code nickel
2022-08-02 17:21 ` [d-kernel] [PATCH 6/6] ASoC: Intel: sof_es8336: add 3Logic Group Lime 15.6 DMI info for pa-enable lookup quirk nickel
2022-08-02 22:25 ` [d-kernel] [PATCH 0/6] ASoC: Intel: sof_es8336: add support for more laptop models in 5.15 Vitaly Chikunov
2022-08-03 17:36 ` Vitaly Chikunov
2022-08-03 17:52 ` Vitaly Chikunov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220802172140.226880-3-nickel@altlinux.org \
--to=nickel@altlinux.org \
--cc=devel-kernel@lists.altlinux.org \
--cc=kovalev@altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git