vfio: fix array bounds check