From: YoungJun Cho Date: Thu, 1 Dec 2016 02:55:13 +0000 (+0900) Subject: tbm_bufmgr_sprd: fix wrong ioctl() parameter X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170104.100305~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=232d3a6e1ceab142f41e422f74cab4804ca381a1;p=platform%2Fadaptation%2Fspreadtrum%2Flibtbm-sprd.git tbm_bufmgr_sprd: fix wrong ioctl() parameter This patch fixes wrong ioctl() parameter. Change-Id: Ic8cea15bd8c2a16b6aadbc362a6cd185f5bad83f Signed-off-by: YoungJun Cho --- diff --git a/src/tbm_bufmgr_sprd.c b/src/tbm_bufmgr_sprd.c index 9d1f486..5e12c8f 100644 --- a/src/tbm_bufmgr_sprd.c +++ b/src/tbm_bufmgr_sprd.c @@ -330,7 +330,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_SPRD_ERROR("error(%s) key:%d opt:%d\n", strerror(errno), key, opt); @@ -349,7 +349,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_SPRD_ERROR("error(%s) key:%d\n", strerror(errno), key);