projects
/
platform
/
adaptation
/
spreadtrum
/
libtbm-sprd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1db2e
)
tbm_bufmgr_sprd: fix wrong ioctl() parameter
50/101350/1
author
YoungJun Cho
<yj44.cho@samsung.com>
Thu, 1 Dec 2016 02:55:13 +0000
(11:55 +0900)
committer
YoungJun Cho
<yj44.cho@samsung.com>
Thu, 1 Dec 2016 02:55:13 +0000
(11:55 +0900)
This patch fixes wrong ioctl() parameter.
Change-Id: Ic8cea15bd8c2a16b6aadbc362a6cd185f5bad83f
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
src/tbm_bufmgr_sprd.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr_sprd.c
b/src/tbm_bufmgr_sprd.c
index
9d1f486
..
5e12c8f
100644
(file)
--- 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);