Re: [PATCH v2] drm/loongson: Add a check for lsdc_bo_create() errors

2023-07-19 Thread suijingfeng
Hi, This version is ok, I'll apply this patch within a few days. On 2023/7/19 16:45, Dan Carpenter wrote: This code doesn't check for lsdc_bo_create() failure and it could lead to a crash. It can fail for a variety of reasons, but the most common cause would be low memory. Add a check. Fix

[PATCH v2] drm/loongson: Add a check for lsdc_bo_create() errors

2023-07-19 Thread Dan Carpenter
This code doesn't check for lsdc_bo_create() failure and it could lead to a crash. It can fail for a variety of reasons, but the most common cause would be low memory. Add a check. Fixes: f39db26c5428 ("drm: Add kms driver for loongson display controller") Signed-off-by: Dan Carpenter Reviewed-