[PATCH v1 1/1] coresight: core: Switch to krealloc_array()