[PATCH] dm: Add check for NULL dev_part_str