diff options
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index ab10e84eda3a..82a6f34d39d0 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -516,11 +516,13 @@ static void prb_init_blk_timer(struct packet_sock *po, | |||
516 | 516 | ||
517 | static void prb_setup_retire_blk_timer(struct packet_sock *po, int tx_ring) | 517 | static void prb_setup_retire_blk_timer(struct packet_sock *po, int tx_ring) |
518 | { | 518 | { |
519 | struct tpacket_kbdq_core *pkc; | ||
520 | |||
519 | if (tx_ring) | 521 | if (tx_ring) |
520 | BUG(); | 522 | BUG(); |
521 | 523 | ||
522 | prb_init_blk_timer(po, &po->rx_ring.prb_bdqc, | 524 | pkc = tx_ring ? &po->tx_ring.prb_bdqc : &po->rx_ring.prb_bdqc; |
523 | prb_retire_rx_blk_timer_expired); | 525 | prb_init_blk_timer(po, pkc, prb_retire_rx_blk_timer_expired); |
524 | } | 526 | } |
525 | 527 | ||
526 | static int prb_calc_retire_blk_tmo(struct packet_sock *po, | 528 | static int prb_calc_retire_blk_tmo(struct packet_sock *po, |