am 0622ccb3: am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."

* commit '0622ccb34d504170b76b8f4dd5f0639794be679a':
  applypatch: Fix the checking in WriteToPartition().