|
@@ -542,6 +542,10 @@ static int receive_from_sock(struct connection *con)
|
|
|
ret = -EAGAIN;
|
|
ret = -EAGAIN;
|
|
|
goto out_close;
|
|
goto out_close;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (con->nodeid == 0) {
|
|
|
|
|
+ ret = -EINVAL;
|
|
|
|
|
+ goto out_close;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (con->rx_page == NULL) {
|
|
if (con->rx_page == NULL) {
|
|
|
/*
|
|
/*
|
|
@@ -582,8 +586,6 @@ static int receive_from_sock(struct connection *con)
|
|
|
else if (ret == len)
|
|
else if (ret == len)
|
|
|
call_again_soon = 1;
|
|
call_again_soon = 1;
|
|
|
|
|
|
|
|
- BUG_ON(con->nodeid == 0);
|
|
|
|
|
-
|
|
|
|
|
cbuf_add(&con->cb, ret);
|
|
cbuf_add(&con->cb, ret);
|
|
|
ret = dlm_process_incoming_buffer(con->nodeid,
|
|
ret = dlm_process_incoming_buffer(con->nodeid,
|
|
|
page_address(con->rx_page),
|
|
page_address(con->rx_page),
|