[PATCH 6.12 227/422] soc: qcom: socinfo: Avoid out of bounds read of serial number