Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e03cea43 authored by felkachang's avatar felkachang
Browse files

Assign nullopt to remove unnecessary log

Once the client requests idmap2d to release a directory iterator,
idmap2d should follow the client request to free and release
frro_iter_.

It should not only check the value of frro_iter_ but also make
frro_iter_ to be nullopt in releaseFabricatedOverlayIterator.

Fixes: 244389702
Test: adb reboot; adb wait-for-device; adb logcat -s idmap2d
Change-Id: Ida1e7e7ae89f12407d26e66ab318a91e4f861df4
parent 6cf42344
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -312,6 +312,8 @@ Status Idmap2Service::acquireFabricatedOverlayIterator() {
Status Idmap2Service::releaseFabricatedOverlayIterator() {
  if (!frro_iter_.has_value()) {
    LOG(WARNING) << "no active ffro iterator to release";
  } else {
      frro_iter_ = std::nullopt;
  }
  return ok();
}