segfault at __list_del function in list.h
Hello.
I am testing pulseaudio ucm. I have faced a crash when active ucm device list empty.
Please let me know if following fix can be checked in alsa-lib-1.0.25/include/list.h
old code:
static __inline__ void list_del(struct list_head *entry) {
__list_del(entry->prev, entry->next);
}
new code:
static __inline__ void list_del(struct list_head *entry) {
if(entry->prev && entry->next) __list_del(entry->prev, entry->next);
}
Sajeesh