aboutsummaryrefslogtreecommitdiff
path: root/mm/bootmem.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>2007-03-22 14:40:16 -0700
committerRoland Dreier <rolandd@cisco.com>2007-03-22 14:40:16 -0700
commitd04d01b113be5b88418eb30087753c3de0a39fd8 (patch)
tree3c7dc849f1dfc7293e8337cb66f6b24e90a3fc36 /mm/bootmem.c
parent73b9e9870f5780cb554b68bbcfa47782b27a3e04 (diff)
IPoIB: Fix use-after-free in path_rec_completion()
The connected mode code added the possibility that an neigh struct gets freed in the list_for_each_entry() loop in path_rec_completion(), which causes a use-after-free. Fix this by changing to the _safe variant of the list walking macro. This was spotted by the Coverity checker (CID 1567). Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'mm/bootmem.c')
0 files changed, 0 insertions, 0 deletions