summaryrefslogtreecommitdiff
path: root/sprd/sprd_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprd/sprd_drm.c')
-rwxr-xr-x[-rw-r--r--]sprd/sprd_drm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sprd/sprd_drm.c b/sprd/sprd_drm.c
index a97fa444..7d8dd227 100644..100755
--- a/sprd/sprd_drm.c
+++ b/sprd/sprd_drm.c
@@ -1381,6 +1381,9 @@ static int sprd_drm_mode_set_crtc(int fd, void *arg)
uint32_t i;
uint32_t * ids;
+ if (fd = -1)
+ return -EINVAL;
+
memset(&conns, 0, sizeof(conns[0]) * MAX_CONNECTOR);
dev = get_sprd_device(fd);
@@ -1844,6 +1847,8 @@ void sprd_device_destroy(struct sprd_drm_device *dev)
{
//TODO::
+ DRMLISTDEL(&dev->link);
+
free(dev);
}