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

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

Change-Id: I423d67899b3fe97c23e5685dff0d7e4e117fba87