This patch adds additional code to break out of the recv_loop's while loop upon fip_recv error. This completes the fix from commit 78ea81aaef57b5b40fdc86335a7e6a432a72ad48.
Without this, we have seen cases where the recv_loop gets stuck looping indefinitely. Signed-off-by: Eddie Wai <[email protected]> --- fipvlan.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fipvlan.c b/fipvlan.c index 1b8492d..cc71412 100644 --- a/fipvlan.c +++ b/fipvlan.c @@ -792,6 +792,8 @@ static void recv_loop(int timeout) break; } } + if (i < pfd_len) + break; } } -- 1.7.1 _______________________________________________ fcoe-devel mailing list [email protected] http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel
