[PATCH 4.4 175/190] dm ioctl: fix out of bounds array access when no devices