Merge "Do not write past end of inotify event structure." into sc-qpr1-dev am: 22a72a73c7 am: 0b865fc2db

Original change: https://googleplex-android-review.googlesource.com/c/platform/bootable/recovery/+/16034933

Change-Id: I86f63d6bf8337626d5ae5db0d3909184f9a8da4e