summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2015-12-02 02:30:07 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2015-12-02 02:30:07 -0800
commit8b3697f17cb1054e7f615cf18bf73f9cdefd74ce (patch)
tree38eb435a090639bb5722983dfd83c3046c91048d
parent8dcdd420a682e5b83e1da6e057c0cac8da9ff2bb (diff)
parente3a0f3c6906915cc23162945da5848d42aefdb51 (diff)
downloadlibdrm-8b3697f17cb1054e7f615cf18bf73f9cdefd74ce.tar.gz
libdrm-8b3697f17cb1054e7f615cf18bf73f9cdefd74ce.tar.bz2
libdrm-8b3697f17cb1054e7f615cf18bf73f9cdefd74ce.zip
Merge "[SPRD] error check and delete list" into sprd_drm
-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);
}