mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
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: f39db26c54 ("drm: Add kms driver for loongson display controller")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Sui Jingfeng <[email protected]>
Signed-off-by: Sui Jingfeng <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/ZLeijglIMPve2Iio@kadam