fix rare-case bug: getAllDevInfo loop infinitely if two serial number is same