Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38098
b: refs/heads/master
c: e69fae5
h: refs/heads/master
v: v3
  • Loading branch information
Micha³ Miros³aw authored and Linus Torvalds committed Oct 3, 2006
1 parent c956192 commit 3956227
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28f16c2039b4eefdc09c99b12f310afb44de5536
refs/heads/master: e69fae561f422f7f9dbda19f448633aa6564663e
17 changes: 6 additions & 11 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ static void trigger_event(void *data);

static struct pgpath *alloc_pgpath(void)
{
struct pgpath *pgpath = kmalloc(sizeof(*pgpath), GFP_KERNEL);
struct pgpath *pgpath = kzalloc(sizeof(*pgpath), GFP_KERNEL);

if (pgpath) {
memset(pgpath, 0, sizeof(*pgpath));
if (pgpath)
pgpath->path.is_active = 1;
}

return pgpath;
}
Expand All @@ -133,12 +131,10 @@ static struct priority_group *alloc_priority_group(void)
{
struct priority_group *pg;

pg = kmalloc(sizeof(*pg), GFP_KERNEL);
if (!pg)
return NULL;
pg = kzalloc(sizeof(*pg), GFP_KERNEL);

memset(pg, 0, sizeof(*pg));
INIT_LIST_HEAD(&pg->pgpaths);
if (pg)
INIT_LIST_HEAD(&pg->pgpaths);

return pg;
}
Expand Down Expand Up @@ -172,9 +168,8 @@ static struct multipath *alloc_multipath(struct dm_target *ti)
{
struct multipath *m;

m = kmalloc(sizeof(*m), GFP_KERNEL);
m = kzalloc(sizeof(*m), GFP_KERNEL);
if (m) {
memset(m, 0, sizeof(*m));
INIT_LIST_HEAD(&m->priority_groups);
spin_lock_init(&m->lock);
m->queue_io = 1;
Expand Down

0 comments on commit 3956227

Please sign in to comment.