linux/drivers/gpu/drm/loongson
Dan Carpenter b0e9267d4c drm/loongson: Add a check for lsdc_bo_create() errors
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 <dan.carpenter@linaro.org>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Link: https://patchwork.freedesktop.org/patch/msgid/ZLeijglIMPve2Iio@kadam
2023-08-04 13:31:32 +08:00
..
Kconfig
loongson_device.c
loongson_module.c
loongson_module.h
lsdc_benchmark.c
lsdc_benchmark.h
lsdc_crtc.c
lsdc_debugfs.c
lsdc_drv.c
lsdc_drv.h
lsdc_gem.c
lsdc_gem.h
lsdc_gfxpll.c
lsdc_gfxpll.h
lsdc_i2c.c
lsdc_i2c.h
lsdc_irq.c
lsdc_irq.h
lsdc_output_7a1000.c
lsdc_output_7a2000.c
lsdc_output.h
lsdc_pixpll.c
lsdc_pixpll.h
lsdc_plane.c
lsdc_probe.c
lsdc_probe.h
lsdc_regs.h
lsdc_ttm.c drm/loongson: Add a check for lsdc_bo_create() errors 2023-08-04 13:31:32 +08:00
lsdc_ttm.h
Makefile