This is a note to let you know that I've just added the patch titled drm/msm: fix missing wq allocation error handling to the 6.3-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-msm-fix-missing-wq-allocation-error-handling.patch and it can be found in the queue-6.3 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From ca090c837b430752038b24e56dd182010d77f6f6 Mon Sep 17 00:00:00 2001 From: Johan Hovold <johan+linaro@xxxxxxxxxx> Date: Mon, 6 Mar 2023 11:07:19 +0100 Subject: drm/msm: fix missing wq allocation error handling From: Johan Hovold <johan+linaro@xxxxxxxxxx> commit ca090c837b430752038b24e56dd182010d77f6f6 upstream. Add the missing sanity check to handle workqueue allocation failures. Fixes: c8afe684c95c ("drm/msm: basic KMS driver for snapdragon") Cc: stable@xxxxxxxxxxxxxxx # 3.12 Cc: Rob Clark <robdclark@xxxxxxxxx> Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> Patchwork: https://patchwork.freedesktop.org/patch/525102/ Link: https://lore.kernel.org/r/20230306100722.28485-8-johan+linaro@xxxxxxxxxx Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/msm/msm_drv.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -432,6 +432,10 @@ static int msm_drm_init(struct device *d priv->dev = ddev; priv->wq = alloc_ordered_workqueue("msm", 0); + if (!priv->wq) { + ret = -ENOMEM; + goto err_put_dev; + } INIT_LIST_HEAD(&priv->objects); mutex_init(&priv->obj_lock); Patches currently in stable-queue which might be from johan+linaro@xxxxxxxxxx are queue-6.3/drm-msm-fix-vram-leak-on-bind-errors.patch queue-6.3/drm-msm-adreno-fix-runtime-pm-imbalance-at-gpu-load.patch queue-6.3/drm-msm-fix-workqueue-leak-on-bind-errors.patch queue-6.3/drm-msm-fix-drm-device-leak-on-bind-errors.patch queue-6.3/drm-msm-fix-missing-wq-allocation-error-handling.patch queue-6.3/drm-msm-fix-null-deref-on-irq-uninstall.patch queue-6.3/usb-dwc3-gadget-drop-dead-hibernation-code.patch queue-6.3/drm-msm-fix-null-deref-on-snapshot-tear-down.patch