[PATCH 4.19 32/72] dm ioctl: fix out of bounds array access when no devices