diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2013-07-31 17:00:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 16:52:46 -0700 |
commit | def5a30f1a9766eb269234971f45736d67326925 (patch) | |
tree | 45ee79cc693bce3e8b5d4031dd14597b3be2c598 /arch | |
parent | 7b900d1daf22341794f5fd7a0ec1fe97966b8590 (diff) | |
download | kernel_samsung_smdk4412-def5a30f1a9766eb269234971f45736d67326925.zip kernel_samsung_smdk4412-def5a30f1a9766eb269234971f45736d67326925.tar.gz kernel_samsung_smdk4412-def5a30f1a9766eb269234971f45736d67326925.tar.bz2 |
xen-gnt: prevent adding duplicate gnt callbacks
commit 5f338d9001094a56cf87bd8a280b4e7ff953bb59 upstream.
With the current implementation, the callback in the tail of the list
can be added twice, because the check done in
gnttab_request_free_callback is bogus, callback->next can be NULL if
it is the last callback in the list. If we add the same callback twice
we end up with an infinite loop, were callback == callback->next.
Replace this check with a proper one that iterates over the list to
see if the callback has already been added.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Matt Wilson <msw@amazon.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions