firmware: dmi_scan: Prevent dmi_num integer overflow