Page MenuHomeFreeBSD

D43203.id131931.diff
No OneTemporary

D43203.id131931.diff

diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c
--- a/sys/cam/scsi/scsi_sa.c
+++ b/sys/cam/scsi/scsi_sa.c
@@ -1494,8 +1494,12 @@
bailout:
if (need_copy != 0) {
if (error != EFAULT) {
+ int error1;
+
cam_periph_unlock(periph);
- copyout(params, list->params, list->param_len);
+ error1 = copyout(params, list->params, list->param_len);
+ if (error == 0)
+ error = error1;
cam_periph_lock(periph);
}
free(params, M_SCSISA);

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 9, 10:25 AM (20 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28470469
Default Alt Text
D43203.id131931.diff (467 B)

Event Timeline