Page MenuHomeFreeBSD

D43148.diff
No OneTemporary

D43148.diff

diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c
--- a/sys/dev/iscsi/iscsi.c
+++ b/sys/dev/iscsi/iscsi.c
@@ -1896,17 +1896,17 @@
return (EMSGSIZE);
}
- copyout(ip->ip_bhs, idr->idr_bhs, sizeof(*ip->ip_bhs));
- if (ip->ip_data_len > 0) {
+ error = copyout(ip->ip_bhs, idr->idr_bhs, sizeof(*ip->ip_bhs));
+ if (error == 0 && ip->ip_data_len > 0) {
data = malloc(ip->ip_data_len, M_ISCSI, M_WAITOK);
icl_pdu_get_data(ip, 0, data, ip->ip_data_len);
- copyout(data, idr->idr_data_segment, ip->ip_data_len);
+ error = copyout(data, idr->idr_data_segment, ip->ip_data_len);
free(data, M_ISCSI);
}
icl_pdu_free(ip);
- return (0);
+ return (error);
}
#endif /* ICL_KERNEL_PROXY */

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 1:54 AM (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14708417
Default Alt Text
D43148.diff (713 B)

Event Timeline