Bug in demo program, checking wrong return value Signed-off-by: Stephen Hemminger <stephen@xxxxxxxxxxxxxxxxxx> --- a/Documentation/DocBook/uio-howto.tmpl 2012-12-12 08:53:44.615986228 -0800 +++ b/Documentation/DocBook/uio-howto.tmpl 2013-01-16 10:03:05.577809560 -0800 @@ -984,7 +984,7 @@ int main() return errno; } configfd = open("/sys/class/uio/uio0/device/config", O_RDWR); - if (uiofd < 0) { + if (configfd < 0) { perror("config open:"); return errno; } -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html