[PATCH 5.11 105/254] dm ioctl: fix out of bounds array access when no devices