Skip to content

Commit 251b860

Browse files
committed
Added missing check for null pointer possibly affecting Pm_OpenOutput under ALSA. This is not a tested change yet.
1 parent 7e978e1 commit 251b860

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ cmake_install.cmake
6868
/CMakeDoxygenDefaults.cmake
6969

7070
/docs/
71+
72+
/Doxyfile

pm_linux/pmlinuxalsa.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ static const char *get_sysdep_name(enum PmSysDepPropertyKey key,
172172

173173
static void maybe_set_client_name(PmSysDepInfo *driverInfo)
174174
{
175-
if (!seq) { /* make sure seq is created and we have info */
175+
/* make sure seq is created and we have info */
176+
if (!seq || !driverInfo) {
176177
return;
177178
}
178179

0 commit comments

Comments
 (0)