system/core
Revision | 5dd50fdb9c9386371d3ebafacb04c0270a80d455 (tree) |
---|---|
Time | 2019-06-25 08:30:43 |
Author | Dan Albert <danalbert@goog...> |
Commiter | android-build-merger |
Revert "adb: daemon: Assign valid fd to usb_handle ep0 file descriptor"
am: ba4684c2b2
Change-Id: Idd32e4c28031b07cda09477b819d4bce0434b4fb
@@ -257,7 +257,6 @@ bool open_functionfs(android::base::unique_fd* out_control, android::base::uniqu | ||
257 | 257 | } |
258 | 258 | // Signal only when writing the descriptors to ffs |
259 | 259 | android::base::SetProperty("sys.usb.ffs.ready", "1"); |
260 | - *out_control = std::move(control); | |
261 | 260 | } |
262 | 261 | |
263 | 262 | bulk_out.reset(adb_open(USB_FFS_ADB_OUT, O_RDONLY)); |
@@ -272,6 +271,7 @@ bool open_functionfs(android::base::unique_fd* out_control, android::base::uniqu | ||
272 | 271 | return false; |
273 | 272 | } |
274 | 273 | |
274 | + *out_control = std::move(control); | |
275 | 275 | *out_bulk_in = std::move(bulk_in); |
276 | 276 | *out_bulk_out = std::move(bulk_out); |
277 | 277 | return true; |