Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165316
b: refs/heads/master
c: b171e20
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Sep 12, 2009
1 parent 3a4fc09 commit 52aa0d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 18668ff9a3232d5f942a2f7abc1ad67d2760dcdf
refs/heads/master: b171e204b32b69e241af994d6e9be559e33535c1
13 changes: 5 additions & 8 deletions trunk/drivers/firewire/core-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,16 +444,13 @@ int fw_card_add(struct fw_card *card,
card->guid = guid;

mutex_lock(&card_mutex);
config_rom = generate_config_rom(card, &length);
list_add_tail(&card->link, &card_list);
mutex_unlock(&card_mutex);

config_rom = generate_config_rom(card, &length);
ret = card->driver->enable(card, config_rom, length);
if (ret < 0) {
mutex_lock(&card_mutex);
list_del(&card->link);
mutex_unlock(&card_mutex);
}
if (ret == 0)
list_add_tail(&card->link, &card_list);

mutex_unlock(&card_mutex);

return ret;
}
Expand Down

0 comments on commit 52aa0d7

Please sign in to comment.