Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109900868
D43203.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
467 B
Referenced Files
None
Subscribers
None
D43203.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 11:10 PM (16 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16588097
Default Alt Text
D43203.diff (467 B)
Attached To
Mode
D43203: sa: Check for errors from copyout()
Attached
Detach File
Event Timeline
Log In to Comment