Skip to content

Commit

Permalink
uio-howto: example bug
Browse files Browse the repository at this point in the history
Bug in demo program, checking wrong return value

Signed-off-by: Stephen Hemminger <[email protected]>
Cc: "Hans J. Koch" <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
shemminger authored and gregkh committed Jan 17, 2013
1 parent 25c22d5 commit 93ce83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/DocBook/uio-howto.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ int main()
return errno;
}
configfd = open(&quot;/sys/class/uio/uio0/device/config&quot;, O_RDWR);
if (uiofd &lt; 0) {
if (configfd &lt; 0) {
perror(&quot;config open:&quot;);
return errno;
}
Expand Down

0 comments on commit 93ce83b

Please sign in to comment.