diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-12-04 15:21:52 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-12-07 21:13:09 +0100 |
commit | 7dc341175af5e7361af81499ea192c7b274b6357 (patch) | |
tree | 95afffaad2e185fdc8cb69a074c42c8ba263dd64 /mm/mprotect.c | |
parent | xen-blkfront: free allocated page (diff) | |
download | linux-7dc341175af5e7361af81499ea192c7b274b6357.tar.xz linux-7dc341175af5e7361af81499ea192c7b274b6357.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>
Cc: xen-devel@lists.xen.org
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions