diff -urN orig/linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c mod/linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c --- orig/linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c 2004-08-27 15:42:28.767750132 -0700 +++ mod/linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c 2004-08-27 15:42:13.421372200 -0700 @@ -305,6 +305,9 @@ while ( x != NULL ) { t = x->next; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) + blkdev_put(x->bdev); +#endif kfree(x); x = t; } @@ -330,6 +333,9 @@ while ( x != NULL ) { t = x->next; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) + blkdev_put(x->bdev); +#endif kfree(x); x = t; }