Skip to content

Commit 1773482

Browse files
Dan Carpenteranguy11
authored andcommitted
i40e, xsk: uninitialized variable in i40e_clean_rx_irq_zc()
The "failure" variable is used without being initialized. It should be set to false. Fixes: 8cbf741 ("i40e, xsk: move buffer allocation out of the Rx processing loop") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Björn Töpel <bjorn.topel@intel.com> Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 3a70017 commit 1773482

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/i40e/i40e_xsk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget)
281281
unsigned int total_rx_bytes = 0, total_rx_packets = 0;
282282
u16 cleaned_count = I40E_DESC_UNUSED(rx_ring);
283283
unsigned int xdp_res, xdp_xmit = 0;
284+
bool failure = false;
284285
struct sk_buff *skb;
285-
bool failure;
286286

287287
while (likely(total_rx_packets < (unsigned int)budget)) {
288288
union i40e_rx_desc *rx_desc;

0 commit comments

Comments
 (0)