Richard Yao 957dc93242 kobj_read_file: Return -1 on vn_rdwr() error
LLVM's static analyzer showed that we could subtract using an
uninitialized value on an error from vn_rdwr().

The correct behavior is to return -1 on an error, so lets do that
instead.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes 
2016-01-23 10:16:26 -08:00
..
2015-12-04 14:37:41 -08:00
2016-01-20 11:37:33 -08:00
2013-09-04 15:49:00 -07:00