In the Linux kernel, the following vulnerability has been resolved:
ksmbd: use listfirstentryornull for opinfogetlist()
The listfirstentry() macro never returns NULL. If the list is empty then it returns an invalid pointer. Use listfirstentryornull() to check if the list is empty.