HomeFreeBSD

Fix zpl_mknod() return values

Description

Fix zpl_mknod() return values

The zpl_mknod() function was incorrectly negating its return value.
This doesn't cause any problems in the success case, but it does
prevent us from returning the correct error code for a failure.
The implementation of this function is now consistent with all
the other zpl_* functions.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1717

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 13 2013, 8:20 PM
Parents
rG17897ce2c884: Fix uninitialized variables
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG34d5a5fd0321: Fix zpl_mknod() return values (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 13 2013, 8:31 PM