|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] blkback.c:
ChangeSet 1.1324, 2005/04/19 01:03:29+01:00, cwc22@xxxxxxxxxxxxxxxxxxxxxx
blkback.c:
fix to error handling for bad grant refs
Signed-off-by: Christopher Clark
blkback.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 2005-04-19
09:03:40 -04:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 2005-04-19
09:03:40 -04:00
@@ -397,7 +397,7 @@
GNTTABOP_map_grant_ref, &op, 1)))
BUG();
- if ( op.u.map_grant_ref.dev_bus_addr == 0 )
+ if ( op.u.map_grant_ref.handle < 0 )
goto out;
pending_handle(pending_idx, 0) = op.u.map_grant_ref.handle;
@@ -500,7 +500,7 @@
for ( i = 0; i < nseg; i++ )
{
- if ( unlikely(aop[i].u.map_grant_ref.dev_bus_addr == 0) )
+ if ( unlikely(aop[i].u.map_grant_ref.handle < 0) )
{
DPRINTK("invalid buffer -- could not remap it\n");
fast_flush_area(pending_idx, nseg);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] blkback.c:,
BitKeeper Bot <=
|
|
|
|
|