diff options
-rw-r--r-- | libion/ion.c | 2 | ||||
-rw-r--r-- | libion/tests/device_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libion/ion.c b/libion/ion.c index 4565efb80b..2db88453e5 100644 --- a/libion/ion.c +++ b/libion/ion.c @@ -34,7 +34,7 @@ int ion_open() { - int fd = open("/dev/ion", O_RDWR); + int fd = open("/dev/ion", O_RDONLY); if (fd < 0) ALOGE("open /dev/ion failed!\n"); return fd; diff --git a/libion/tests/device_test.cpp b/libion/tests/device_test.cpp index 0be52bf270..eb3f7b621d 100644 --- a/libion/tests/device_test.cpp +++ b/libion/tests/device_test.cpp @@ -46,7 +46,7 @@ class Device : public IonAllHeapsTest { void Device::SetUp() { IonAllHeapsTest::SetUp(); - m_deviceFd = open("/dev/ion-test", O_RDWR); + m_deviceFd = open("/dev/ion-test", O_RDONLY); ASSERT_GE(m_deviceFd, 0); } |