diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-12-04 15:21:53 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-12-18 03:55:56 +0100 |
commit | ebb351cf78ee6bf3262e6b4b6906f456c05e6d5e (patch) | |
tree | 103c6133d51f266b16c8b6f71fddf4992c57dc8f /drivers/pcmcia | |
parent | xen-blkback: implement safe iterator for the list of persistent grants (diff) | |
download | linux-ebb351cf78ee6bf3262e6b4b6906f456c05e6d5e.tar.xz linux-ebb351cf78ee6bf3262e6b4b6906f456c05e6d5e.zip |
llist/xen-blkfront: implement safe version of llist_for_each_entry
Implement a safe version of llist_for_each_entry, and use it in
blkif_free. Previously grants where freed while iterating the list,
which lead to dereferences when trying to fetch the next item.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
[v2: Move the llist_for_each_entry_safe in llist.h]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions