[PATCH 4.14 28/59] dm ioctl: fix out of bounds array access when no devices