[PATCH 5.10 090/221] dm ioctl: fix out of bounds array access when no devices