Skip to content

Commit

Permalink
Fix shift exponent (type)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 13, 2023
1 parent 631b448 commit 1af5831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/pf_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -5415,7 +5415,7 @@ static int ring_release(struct socket *sock)
int i;
/* Reset quick mode for all channels */
for(i=0; i<MAX_NUM_RX_CHANNELS; i++) {
u_int64_t channel_id_bit = 1 << i;
u_int64_t channel_id_bit = (u_int64_t) 1 << i;
if((pfr->channel_id_mask & channel_id_bit) && netns->quick_mode_rings[dev_index][i] == pfr)
netns->quick_mode_rings[dev_index][i] = NULL;
}
Expand Down

0 comments on commit 1af5831

Please sign in to comment.