diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/csr1212.c | 2 | ||||
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ieee1394/csr1212.c b/drivers/ieee1394/csr1212.c index a6dfeb0b3372..e76cac64c533 100644 --- a/drivers/ieee1394/csr1212.c +++ b/drivers/ieee1394/csr1212.c | |||
@@ -35,6 +35,7 @@ | |||
35 | 35 | ||
36 | #include <linux/errno.h> | 36 | #include <linux/errno.h> |
37 | #include <linux/kernel.h> | 37 | #include <linux/kernel.h> |
38 | #include <linux/kmemcheck.h> | ||
38 | #include <linux/string.h> | 39 | #include <linux/string.h> |
39 | #include <asm/bug.h> | 40 | #include <asm/bug.h> |
40 | #include <asm/byteorder.h> | 41 | #include <asm/byteorder.h> |
@@ -387,6 +388,7 @@ csr1212_new_descriptor_leaf(u8 dtype, u32 specifier_id, | |||
387 | if (!kv) | 388 | if (!kv) |
388 | return NULL; | 389 | return NULL; |
389 | 390 | ||
391 | kmemcheck_annotate_variable(kv->value.leaf.data[0]); | ||
390 | CSR1212_DESCRIPTOR_LEAF_SET_TYPE(kv, dtype); | 392 | CSR1212_DESCRIPTOR_LEAF_SET_TYPE(kv, dtype); |
391 | CSR1212_DESCRIPTOR_LEAF_SET_SPECIFIER_ID(kv, specifier_id); | 393 | CSR1212_DESCRIPTOR_LEAF_SET_SPECIFIER_ID(kv, specifier_id); |
392 | 394 | ||
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index a6d55bebe61a..5122b5a8aa2d 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include <linux/bitmap.h> | 11 | #include <linux/bitmap.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/kmemcheck.h> | ||
13 | #include <linux/list.h> | 14 | #include <linux/list.h> |
14 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
15 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
@@ -39,7 +40,10 @@ struct nodemgr_csr_info { | |||
39 | struct hpsb_host *host; | 40 | struct hpsb_host *host; |
40 | nodeid_t nodeid; | 41 | nodeid_t nodeid; |
41 | unsigned int generation; | 42 | unsigned int generation; |
43 | |||
44 | kmemcheck_bitfield_begin(flags); | ||
42 | unsigned int speed_unverified:1; | 45 | unsigned int speed_unverified:1; |
46 | kmemcheck_bitfield_end(flags); | ||
43 | }; | 47 | }; |
44 | 48 | ||
45 | 49 | ||
@@ -1293,6 +1297,7 @@ static void nodemgr_node_scan_one(struct hpsb_host *host, | |||
1293 | u8 *speed; | 1297 | u8 *speed; |
1294 | 1298 | ||
1295 | ci = kmalloc(sizeof(*ci), GFP_KERNEL); | 1299 | ci = kmalloc(sizeof(*ci), GFP_KERNEL); |
1300 | kmemcheck_annotate_bitfield(ci, flags); | ||
1296 | if (!ci) | 1301 | if (!ci) |
1297 | return; | 1302 | return; |
1298 | 1303 | ||