[PATCH openEuler-1.0-LTS 068/109] dm ioctl: fix out of bounds array access when no devices