blob: c2fa4973065f8a7ba97cb843c96c3cc7cb943a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Index: linux-2.6.17/drivers/md/dm-ioctl.c
===================================================================
--- linux-2.6.17.orig/drivers/md/dm-ioctl.c
+++ linux-2.6.17/drivers/md/dm-ioctl.c
@@ -612,7 +612,8 @@ static struct hash_cell *__find_device_h
md = dm_get_md(huge_decode_dev(param->dev));
if (md) {
- mdptr = dm_get_mdptr(md);
+ if (vx_check(dm_get_xid(md), VX_WATCH_P|VX_IDENT))
+ mdptr = dm_get_mdptr(md);
dm_put(md);
}
|