diff options
author | Roger Pau Monne <[email protected]> | 2012-12-04 15:21:52 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <[email protected]> | 2012-12-07 15:13:09 -0500 |
commit | 7dc341175af5e7361af81499ea192c7b274b6357 (patch) | |
tree | 95afffaad2e185fdc8cb69a074c42c8ba263dd64 /lib/mpi/mpi-internal.h | |
parent | 07c540a0b5f4674538b57ad85bc9306e44fb45dd (diff) |
xen-blkback: implement safe iterator for the list of persistent grants
Change foreach_grant iterator to a safe version, that allows freeing
the element while iterating. Also move the free code in
free_persistent_gnts to prevent freeing the element before the rb_next
call.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Roger Pau Monné <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: [email protected]
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions