diff options
Diffstat (limited to 'drivers/misc/c2port/core.c')
-rw-r--r-- | drivers/misc/c2port/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/c2port/core.c b/drivers/misc/c2port/core.c index 0207dd59090d..b5346b4db91a 100644 --- a/drivers/misc/c2port/core.c +++ b/drivers/misc/c2port/core.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
16 | #include <linux/err.h> | 16 | #include <linux/err.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/kmemcheck.h> | ||
18 | #include <linux/ctype.h> | 19 | #include <linux/ctype.h> |
19 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
20 | #include <linux/idr.h> | 21 | #include <linux/idr.h> |
@@ -891,6 +892,7 @@ struct c2port_device *c2port_device_register(char *name, | |||
891 | return ERR_PTR(-EINVAL); | 892 | return ERR_PTR(-EINVAL); |
892 | 893 | ||
893 | c2dev = kmalloc(sizeof(struct c2port_device), GFP_KERNEL); | 894 | c2dev = kmalloc(sizeof(struct c2port_device), GFP_KERNEL); |
895 | kmemcheck_annotate_bitfield(c2dev, flags); | ||
894 | if (unlikely(!c2dev)) | 896 | if (unlikely(!c2dev)) |
895 | return ERR_PTR(-ENOMEM); | 897 | return ERR_PTR(-ENOMEM); |
896 | 898 | ||