In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix NULL deref in dcn401_update_clocks_update_dtb_dto [Why] resource_get_otg_master_for_stream() can return NULL if no OTG master pipe is found for a given stream. The current code dereferences this pointer without a NULL check. This may lead to a possible NULL pointer dereference. [How] Add an explicit NULL check and skip the stream if the OTG master is not found. This is similar to dcn60_update_clocks_update_dtb_dto(). Found by Linux Verification Center (linuxtesting.org) with SVACE. (cherry picked from commit ffde3d74c1faeeb645b66d02d02fdae3e073941b)
https://git.kernel.org/stable/c/8f7b663d23f3b66c97afc5f8e36b63388322bc53
https://git.kernel.org/stable/c/7fac15d009cf236677a8cddf6bc0e8c85666ac3b
https://git.kernel.org/stable/c/7473715dcf76196d2242c1b19756a95c98ea21ba
https://git.kernel.org/stable/c/135691aaf7a2846940928580ae80061f0efa99e7