From: Srikanth K H <srikanth.h@samsung.com>
To: perex@perex.cz, tiwai@suse.com, elfring@users.sourceforge.net,
ben.hutchings@codethink.co.uk, viro@zeniv.linux.org.uk,
keescook@chromium.org, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org
Cc: cpgs@samsung.com, srikanth.h@samsung.com
Subject: [PATCH 1/1] Preventive fix in sound module
Date: Wed, 18 Jul 2018 15:37:48 +0530 [thread overview]
Message-ID: <1531908468-1352-1-git-send-email-srikanth.h@samsung.com> (raw)
In-Reply-To: CGME20180718100741epcas1p393bea852d102e903ab6a48ff952761db@epcas1p3.samsung.com
Signed-off-by: Srikanth K H <srikanth.h@samsung.com>
---
sound/core/timer.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sound/core/timer.c b/sound/core/timer.c
index b6f076bb..c7be4f1 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1192,10 +1192,12 @@ static void snd_timer_proc_read(struct snd_info_entry *entry,
break;
case SNDRV_TIMER_CLASS_CARD:
snd_iprintf(buffer, "C%i-%i: ",
- timer->card->number, timer->tmr_device);
+ timer->card ? timer->card->number : -1,
+ timer->tmr_device);
break;
case SNDRV_TIMER_CLASS_PCM:
- snd_iprintf(buffer, "P%i-%i-%i: ", timer->card->number,
+ snd_iprintf(buffer, "P%i-%i-%i: ",
+ timer->card ? timer->card->number : -1,
timer->tmr_device, timer->tmr_subdevice);
break;
default:
--
1.9.1
next parent reply other threads:[~2018-07-18 10:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180718100741epcas1p393bea852d102e903ab6a48ff952761db@epcas1p3.samsung.com>
2018-07-18 10:07 ` Srikanth K H [this message]
2018-07-18 10:16 ` [PATCH 1/1] Preventive fix in sound module Takashi Iwai
[not found] ` <CGME20180718100741epcas1p393bea852d102e903ab6a48ff952761db@epcms5p1>
2018-07-18 10:58 ` Srikanth Korangala Hari
2018-07-18 12:14 ` Takashi Iwai
[not found] ` <CGME20180718150653epcas2p3c2f0e36569529df72ce0b79a22867eac@epcas2p3.samsung.com>
2018-07-18 15:07 ` [PATCHv2 " Srikanth K H
2018-07-18 15:24 ` Takashi Iwai
[not found] ` <CGME20180718150653epcas2p3c2f0e36569529df72ce0b79a22867eac@epcms5p8>
2018-07-19 5:16 ` Srikanth Korangala Hari
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=1531908468-1352-1-git-send-email-srikanth.h@samsung.com \
--to=srikanth.h@samsung.com \
--cc=alsa-devel@alsa-project.org \
--cc=ben.hutchings@codethink.co.uk \
--cc=cpgs@samsung.com \
--cc=elfring@users.sourceforge.net \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=viro@zeniv.linux.org.uk \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).