Re: [PATCH] drm/msm/gpu: Fix missing error check for dev_pm_qos_add_request()

2024-10-26 Thread Dmitry Baryshkov
On Sat, Oct 26, 2024 at 05:37:38PM +0800, Jinjie Ruan wrote: > dev_pm_qos_add_request() can fail, and it returns -EINVAL in case of > wrong parameters, return -ENOMEM if there's not enough memory to allocate > for data structures, and return -ENODEV if the device has just been > removed from the sy

[PATCH] drm/msm/gpu: Fix missing error check for dev_pm_qos_add_request()

2024-10-26 Thread Jinjie Ruan
dev_pm_qos_add_request() can fail, and it returns -EINVAL in case of wrong parameters, return -ENOMEM if there's not enough memory to allocate for data structures, and return -ENODEV if the device has just been removed from the system. If it fails in msm_devfreq_init(), there is no point in going o