git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3399a3f
)
block: fix bogus EFAULT error from SG_IO ioctl
author
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 26 Jun 2015 09:44:46 +0000
(11:44 +0200)
committer
Jens Axboe
<axboe@fb.com>
Sat, 27 Jun 2015 17:43:34 +0000
(11:43 -0600)
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>
block/scsi_ioctl.c
patch
|
blob
|
history
diff --cc
block/scsi_ioctl.c
Simple merge