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

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

Change-Id: I49e7f979c512ce418cbfb35807b1b7bdbbfe912b