diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-26 12:44:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-06-27 20:43:34 +0300 |
commit | 2c4cffe85170a001c1d092681c86aa1128295221 (patch) | |
tree | c79d5bc1a94c2b6886826e170decad8f55cd6c2a /lib/Kconfig.debug | |
parent | 3399a3f7464a624db1b365dbce0fef0ef4636c05 (diff) | |
download | linux-2c4cffe85170a001c1d092681c86aa1128295221.tar.xz |
block: fix bogus EFAULT error from SG_IO ioctl
Whenever blk_fill_sghdr_rq fails, its errno code is ignored and changed to
EFAULT. This can cause very confusing errors:
$ sg_persist -k /dev/sda
persistent reservation in: pass through os error: Bad address
The fix is trivial, just propagate the return value from
blk_fill_sghdr_rq.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions