Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1030
b: refs/heads/master
c: f1daa40
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed May 5, 2005
1 parent 159f9c6 commit 5bf9784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: c557308e1f4b6f7d6144a06e8f98c467814f3aed
refs/heads/master: f1daa40b638891a62e1be40f78d752c500265362
6 changes: 3 additions & 3 deletions trunk/drivers/md/dm-emc.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ static struct emc_handler *alloc_emc_handler(void)
{
struct emc_handler *h = kmalloc(sizeof(*h), GFP_KERNEL);

if (h)
if (h) {
memset(h, 0, sizeof(*h));
spin_lock_init(&h->lock);
}

return h;
}
Expand Down Expand Up @@ -259,8 +261,6 @@ static int emc_create(struct hw_handler *hwh, unsigned argc, char **argv)
if (!h)
return -ENOMEM;

memset(h, 0, sizeof(*h));

hwh->context = h;

if ((h->short_trespass = short_trespass))
Expand Down

0 comments on commit 5bf9784

Please sign in to comment.