[PATCH 4.14 160/165] power: generic-adc-battery: fix out-of-bounds write when copying channel properties