Skip to content

Commit

Permalink
IB/qib: Reset packet list after freeing
Browse files Browse the repository at this point in the history
Reset the list pointers after freeing the SDMA packet list.  This is
done to any potential double-free cases.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Mike Marciniszyn authored and Roland Dreier committed Jan 11, 2011
1 parent a0a234d commit f73df40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/qib/qib_user_sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ static void qib_user_sdma_free_pkt_list(struct device *dev,

kmem_cache_free(pq->pkt_slab, pkt);
}
INIT_LIST_HEAD(list);
}

/*
Expand Down

0 comments on commit f73df40

Please sign in to comment.