Merge "Do not write past end of inotify event structure. am: 855803fd4a am: 1da9219007 am: d68122fa47 am: 645a15ae7e am: 3063fed76d" into sc-v2-dev-plus-aosp am: 8cf8097a0a

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

Change-Id: I80364a47bdec12d741a9bc54f2a48d7c8576283e