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

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

Change-Id: If23d9810f320f732634fca4602927406587692ae