diff options
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index fc439605aa69..e07446e19c74 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2534,7 +2534,7 @@ struct drbd_resource *drbd_create_resource(const char *name) { struct drbd_resource *resource; - resource = kmalloc(sizeof(struct drbd_resource), GFP_KERNEL); + resource = kzalloc(sizeof(struct drbd_resource), GFP_KERNEL); if (!resource) return NULL; resource->name = kstrdup(name, GFP_KERNEL); |