Revert "ion: remove ion_validate_buffer_flag"

This reverts commit d37380274678fb3a0deeb45774c82fc15cf3a647.