libion: return -errno from ion_close

Return -errno from ion_close instead of -1 on error.

Change-Id: Idb828aa4b4d1a660b79d2dba8be32f306eac959d
This commit is contained in:
Colin Cross 2013-12-18 15:17:21 -08:00
parent 51b6e42231
commit aab47b293f
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ int ion_open()
int ion_close(int fd)
{
return close(fd);
int ret = close(fd);
if (ret < 0)
return -errno;
return ret;
}
static int ion_ioctl(int fd, int req, void *arg)