[PATCH v2] devres: Fix devm_krealloc() allocating memory with wrong size