Skip to content

Commit

Permalink
iser: fix local conn params being reset to default
Browse files Browse the repository at this point in the history
Instead of reseting the params to default if they pass it
we should reset to max if they pass it.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
  • Loading branch information
roidayan authored and fujita committed Oct 28, 2014
1 parent 3cdb9e8 commit 023aaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/iscsi/iser_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ static int iser_login_check_params(struct iscsi_connection *iscsi_conn,
if (p[i].state == KEY_STATE_START && p[i].val != session_keys[i].def) {
if (iscsi_conn->state == STATE_LOGIN) {
if (i >= ISCSI_PARAM_FIRST_LOCAL) {
if (p[i].val > session_keys[i].def)
p[i].val = session_keys[i].def;
if (p[i].val > session_keys[i].max)
p[i].val = session_keys[i].max;
p[i].state = KEY_STATE_DONE;
continue;
}
Expand Down

0 comments on commit 023aaf4

Please sign in to comment.