Merge "libion: open /dev/ion read-only" am: 74552a9e7b am: 65233f2217

am: 34a16b45c5

Change-Id: I3f23fd987afd71835861c10f0c4b9ee6525fee24
This commit is contained in:
Jeff Vander Stoep 2016-10-22 00:30:52 +00:00 committed by android-build-merger
commit a21bcf27a4
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);
}