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

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

Change-Id: I88b175c0eb62d5fb2b6a495d596a2e88e8c25f1a