Jan Beulich
2010-Nov-17 15:15 UTC
[Xen-devel] [PATCH] linux-2.6.18/blktap2: fix after c/s 1035
The grant handle must be invalidated only in the error path. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- a/drivers/xen/blktap2/device.c +++ b/drivers/xen/blktap2/device.c @@ -516,8 +516,8 @@ blktap_map_foreign(struct blktap *tap, WARN_ON(table->grants[grant].status == GNTST_eagain); BTERR("invalid user buffer: could not remap it\n"); err |= 1; + table->grants[grant].handle = INVALID_GRANT_HANDLE; } - table->grants[grant].handle = INVALID_GRANT_HANDLE; request->handles[i].user = table->grants[grant].handle; grant++; } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Olaf Hering
2010-Nov-17 15:22 UTC
[Xen-devel] Re: [PATCH] linux-2.6.18/blktap2: fix after c/s 1035
On Wed, Nov 17, Jan Beulich wrote:> The grant handle must be invalidated only in the error path. > > Signed-off-by: Jan Beulich <jbeulich@novell.com>Sorry, well spotted. Signed-off-by: Olaf Hering <olaf@aepfle.de> Olaf _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel