Commit 6faff072 authored by Adam Belay's avatar Adam Belay Committed by Linus Torvalds

[PNP] sysfs entry "resource" fix

This patch ensures the proper count is returned in pnp_set_current_resources.
parent fb6647a6
......@@ -434,7 +434,7 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count
goto done;
}
done:
if (retval)
if (retval < 0)
return retval;
return count;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment