diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 042bf763a40fcbad8fd0dfa8e688b66fb202b62d..c08fa213fdce929eeea96d0704a8739f441efd3b 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -552,7 +552,8 @@ static int prb_calc_retire_blk_tmo(struct packet_sock *po, msec = 1; div = ecmd.base.speed / 1000; } - } + } else + return DEFAULT_PRB_RETIRE_TOV; mbits = (blk_size_in_bytes * 8) / (1024 * 1024);