From: Marek Marczykowski-Górecki Date: Fri, 26 Jun 2015 01:28:24 +0000 (+0200) Subject: xen/gntdevt: Fix race condition in gntdev_release() X-Git-Tag: omap-for-v4.3/fixes-merge-window~142^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30b03d05e07467b8c6ec683ea96b5bffcbcd3931;p=pandora-kernel.git xen/gntdevt: Fix race condition in gntdev_release() While gntdev_release() is called the MMU notifier is still registered and can traverse priv->maps list even if no pages are mapped (which is the case -- gntdev_release() is called after all). But gntdev_release() will clear that list, so make sure that only one of those things happens at the same time. Signed-off-by: Marek Marczykowski-Górecki Cc: Signed-off-by: David Vrabel --- Reading git-diff-tree failed