Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc92d146 authored by Nelson Escobar's avatar Nelson Escobar Committed by Doug Ledford
Browse files

IB/usnic: Fix resource leak in error case

parent 89e5323c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ alloc_res_chunk_list(struct usnic_vnic *vnic,
	return res_chunk_list;

out_free_res:
	for (i--; i > 0; i--)
	for (i--; i >= 0; i--)
		usnic_vnic_put_resources(res_chunk_list[i]);
	kfree(res_chunk_list);
	return ERR_PTR(err);