tbm_bufmgr_exynos: fix wrong ioctl() parameter 51/101351/1
authorYoungJun Cho <yj44.cho@samsung.com>
Thu, 1 Dec 2016 02:55:54 +0000 (11:55 +0900)
committerYoungJun Cho <yj44.cho@samsung.com>
Thu, 1 Dec 2016 02:55:54 +0000 (11:55 +0900)
This patch fixes wrong ioctl() parameter.

Change-Id: If4e89a8cba983901c1068e77282f35ae9c1430a1
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
src/tbm_bufmgr_exynos.c

index cec530f..03923c9 100644 (file)
@@ -348,7 +348,7 @@ _tgl_lock(int fd, unsigned int key, int opt)
        data.key = key;
        data.type = tgl_type;
 
-       err = ioctl(fd, TGL_IOCTL_LOCK, data);
+       err = ioctl(fd, TGL_IOCTL_LOCK, &data);
        if (err) {
                TBM_EXYNOS_ERROR("error(%s) key:%d opt:%d\n",
                        strerror(errno), key, opt);
@@ -367,7 +367,7 @@ _tgl_unlock(int fd, unsigned int key)
        data.key = key;
        data.type = TGL_TYPE_NONE;
 
-       err = ioctl(fd, TGL_IOCTL_UNLOCK, data);
+       err = ioctl(fd, TGL_IOCTL_UNLOCK, &data);
        if (err) {
                TBM_EXYNOS_ERROR("error(%s) key:%d\n",
                        strerror(errno), key);