Skip to content

Commit 93ce83b

Browse files
shemmingergregkh
authored andcommitted
uio-howto: example bug
Bug in demo program, checking wrong return value Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Cc: "Hans J. Koch" <hjk@hansjkoch.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 25c22d5 commit 93ce83b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Documentation/DocBook/uio-howto.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ int main()
984984
return errno;
985985
}
986986
configfd = open(&quot;/sys/class/uio/uio0/device/config&quot;, O_RDWR);
987-
if (uiofd &lt; 0) {
987+
if (configfd &lt; 0) {
988988
perror(&quot;config open:&quot;);
989989
return errno;
990990
}

0 commit comments

Comments
 (0)