Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bec9988 authored by Vignesh Kulothungan's avatar Vignesh Kulothungan
Browse files

ALSA: core: set private data for snd_info_entry



Set sound card  as private data for "state" snd info
entry to avoid dereference error when user/userspace
tries to read card state.

Change-Id: Ia165fef682dd420ffedd5352efdf31d96b232a4b
Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent 17c22334
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -571,6 +571,7 @@ int snd_info_card_create(struct snd_card *card)
	entry_state->size = SND_CARD_STATE_MAX_LEN;
	entry_state->size = SND_CARD_STATE_MAX_LEN;
	entry_state->content = SNDRV_INFO_CONTENT_DATA;
	entry_state->content = SNDRV_INFO_CONTENT_DATA;
	entry_state->c.ops = &snd_info_card_state_proc_ops;
	entry_state->c.ops = &snd_info_card_state_proc_ops;
	entry_state->private_data = card;
#endif
#endif
	return 0;
	return 0;
}
}