Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145000555
D34487.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
626 B
Referenced Files
None
Subscribers
None
D34487.diff
View Options
diff --git a/sys/dev/iser/icl_iser.c b/sys/dev/iser/icl_iser.c
--- a/sys/dev/iser/icl_iser.c
+++ b/sys/dev/iser/icl_iser.c
@@ -114,11 +114,13 @@
{
struct iser_conn *iser_conn = icl_to_iser_conn(ic);
- if (request->ip_bhs->bhs_opcode & ISCSI_BHS_OPCODE_LOGIN_REQUEST ||
- request->ip_bhs->bhs_opcode & ISCSI_BHS_OPCODE_TEXT_REQUEST) {
+ switch (request->ip_bhs->bhs_opcode & ISCSI_OPCODE_MASK) {
+ case ISCSI_BHS_OPCODE_LOGIN_REQUEST:
+ case ISCSI_BHS_OPCODE_TEXT_REQUEST:
ISER_DBG("copy to login buff");
memcpy(iser_conn->login_req_buf, addr, len);
request->ip_data_len = len;
+ break;
}
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 15, 10:11 PM (38 m, 5 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28757704
Default Alt Text
D34487.diff (626 B)
Attached To
Mode
D34487: iser: Fix check for opcodes in iser_conn_pdu_append_data.
Attached
Detach File
Event Timeline
Log In to Comment