diff --git a/src/cndm/modules/cndm/cndm_main.c b/src/cndm/modules/cndm/cndm_main.c index a034d0d..b5ce43e 100644 --- a/src/cndm/modules/cndm/cndm_main.c +++ b/src/cndm/modules/cndm/cndm_main.c @@ -212,7 +212,7 @@ static int cndm_common_probe(struct cndm_dev *cdev) dev_info(dev, "Read HW IDs"); ret = cndm_hwid_sn_rd(cdev, NULL, &cdev->sn_str); - if (ret) { + if (ret || !strlen(cdev->sn_str)) { dev_info(dev, "No readable serial number"); } else { dev_info(dev, "SN: %s", cdev->sn_str);