Fix fdsan check
BUG: 140376618 Test: Downloaded a picture on Chrome (this would crash previously) Change-Id: I7a750cde1131d19d140140dfaa0bd09131974fc0
This commit is contained in:
parent
a914cc764e
commit
23edfac445
2 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,7 @@ status_t VolumeBase::setFuseFd(android::base::unique_fd fuseFd) {
|
|||
return -EBUSY;
|
||||
}
|
||||
|
||||
mFuseFd.reset(std::move(fuseFd.get()));
|
||||
mFuseFd = std::move(fuseFd);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@ class VolumeBase {
|
|||
status_t setId(const std::string& id);
|
||||
status_t setPath(const std::string& path);
|
||||
status_t setInternalPath(const std::string& internalPath);
|
||||
// Takes ownership of the fd passed in.
|
||||
status_t setFuseFd(android::base::unique_fd fuseFd);
|
||||
|
||||
android::sp<android::os::IVoldListener> getListener() const;
|
||||
|
|
Loading…
Reference in a new issue