summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-11-04 17:35:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-04 17:35:23 +0000
commit88361aaaf4f2339f50dc32438a261283c642d471 (patch)
tree47656eb5d252fb9f01824971450cfeef989803df /libs/binder
parentaa4ccfd123620f8dd28c4ae65a2a5aa3b8a0f83e (diff)
parent8e5cf83afbe2b671f96d04786cf0d0f967e342f9 (diff)
downloadframeworks_native-88361aaaf4f2339f50dc32438a261283c642d471.zip
frameworks_native-88361aaaf4f2339f50dc32438a261283c642d471.tar.gz
frameworks_native-88361aaaf4f2339f50dc32438a261283c642d471.tar.bz2
am 8e5cf83a: Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"
* commit '8e5cf83afbe2b671f96d04786cf0d0f967e342f9': Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/Parcel.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 1dbb06f..61bdbc6 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -26,7 +26,6 @@
#include <binder/TextOutput.h>
#include <errno.h>
-#include <utils/CallStack.h>
#include <utils/Debug.h>
#include <utils/Log.h>
#include <utils/String8.h>
@@ -768,29 +767,6 @@ status_t Parcel::writeFileDescriptor(int fd, bool takeOwnership)
status_t Parcel::writeDupFileDescriptor(int fd)
{
int dupFd = dup(fd);
-
- { // Temporary extra debug validation for b/17477219: a Parcel recipient is
- // getting a positive but invalid fd unexpectedly. Trying to track down
- // where it's coming from.
- int dupErrno = dupFd < 0 ? errno : 0;
- int fdFlags = fcntl(fd, F_GETFD);
- int fdFlagsErrno = fdFlags == -1 ? errno : 0;
- int dupFlags = fcntl(dupFd, F_GETFD);
- int dupFlagsErrno = dupFlags == -1 ? errno : 0;
- if (dupFd < 0 || fdFlags == -1 || dupFlags == -1) {
- ALOGE("Parcel::writeDupFileDescriptor failed:\n"
- " fd=%d flags=%d err=%d(%s)\n"
- " dupFd=%d dupErr=%d(%s) flags=%d err=%d(%s)",
- fd, fdFlags, fdFlagsErrno, strerror(fdFlagsErrno),
- dupFd, dupErrno, strerror(dupErrno),
- dupFlags, dupFlagsErrno, strerror(dupFlagsErrno));
- if (fd < 0 || fdFlags == -1) {
- CallStack(LOG_TAG);
- }
- return -errno;
- }
- }
-
if (dupFd < 0) {
return -errno;
}
@@ -1321,7 +1297,6 @@ status_t Parcel::read(FlattenableHelperInterface& val) const
oldfd, fds[i], dupErrno, strerror(dupErrno),
oldfd, flags, fcntlErrno, strerror(fcntlErrno),
flat, flat ? flat->type : 0);
- CallStack(LOG_TAG);
}
}