Commit 0ae8d798 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman
Browse files
parent 5e77886d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1730,8 +1730,8 @@ char *coresight_alloc_device_name(struct coresight_dev_list *dict,
	if (idx < 0) {
		/* Make space for the new entry */
		idx = dict->nr_idx;
		list = krealloc(dict->fwnode_list,
				(idx + 1) * sizeof(*dict->fwnode_list),
		list = krealloc_array(dict->fwnode_list,
				      idx + 1, sizeof(*dict->fwnode_list),
				      GFP_KERNEL);
		if (ZERO_OR_NULL_PTR(list)) {
			idx = -ENOMEM;