[PATCH 6.6 144/273] soc: qcom: socinfo: Avoid out of bounds read of serial number