Unverified Commit 253891dd authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents d0726f03 27d6627f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5463,7 +5463,7 @@ static ssize_t reset_method_store(struct device *dev,
				  const char *buf, size_t count)
{
	struct pci_dev *pdev = to_pci_dev(dev);
	char *options, *name;
	char *options, *tmp_options, *name;
	int m, n;
	u8 reset_methods[PCI_NUM_RESET_METHODS] = { 0 };

@@ -5483,7 +5483,8 @@ static ssize_t reset_method_store(struct device *dev,
		return -ENOMEM;

	n = 0;
	while ((name = strsep(&options, " ")) != NULL) {
	tmp_options = options;
	while ((name = strsep(&tmp_options, " ")) != NULL) {
		if (sysfs_streq(name, ""))
			continue;