[PATCH 4.17 112/336] soc: qcom: qmi: fix a buffer sizing bug