Skip to content

Commit

Permalink
firewire: fw-cdev: reorder wakeup vs. spinlock
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Fenlason <fenlason@redhat.com>

Prompted by https://bugzilla.redhat.com/show_bug.cgi?id=323411

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Jay Fenlason authored and Stefan Richter committed Oct 16, 2007
1 parent c1b91ce commit 83431cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,10 @@ static void queue_event(struct client *client, struct event *event,
event->v[1].size = size1;

spin_lock_irqsave(&client->lock, flags);

list_add_tail(&event->link, &client->event_list);
wake_up_interruptible(&client->wait);

spin_unlock_irqrestore(&client->lock, flags);

wake_up_interruptible(&client->wait);
}

static int
Expand Down

0 comments on commit 83431cb

Please sign in to comment.