diff options
author | tao.pei <tao.pei@ck-telecom.com> | 2015-07-17 17:18:41 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-03-22 17:14:35 -0700 |
commit | d954486023aea49be22b53495166f40a028fdb67 (patch) | |
tree | 54204db770d39944a8cc858e2b3dc1748ac25dcd /drm | |
parent | f97015ad37e8386a4215e2d25a4196edef5f7c8d (diff) | |
download | frameworks_av-d954486023aea49be22b53495166f40a028fdb67.zip frameworks_av-d954486023aea49be22b53495166f40a028fdb67.tar.gz frameworks_av-d954486023aea49be22b53495166f40a028fdb67.tar.bz2 |
Use errno correctly.
After a failed write() or ioctl(), errno wasn't being checked until
after some other function calls that could also modify errno, thus
checking the wrong errno. Make sure to check it prior to doing anything
else that can modify it.
[Preconditions]
1.PC connects with phone(mtp).
[Procedures]
1.Copy a file from PC to phone.
2.Cancel the copying.
3.Recopy the file.
Change-Id: Id772fca7ccb96d3f43bd4beb210bedd8d3ac17fa
Diffstat (limited to 'drm')
0 files changed, 0 insertions, 0 deletions