Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115183
b: refs/heads/master
c: f22e52b
h: refs/heads/master
i:
  115181: bb81d42
  115179: abb2896
  115175: 012f084
  115167: 0f6852e
v: v3
  • Loading branch information
Stefan Richter committed Oct 15, 2008
1 parent 59e3004 commit c9d51d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddfb908d3f905dbb5964d6fbf783e69c417eb13e
refs/heads/master: f22e52b89e036fd12b9374212da8b5d4a447bd1e
4 changes: 4 additions & 0 deletions trunk/drivers/ieee1394/raw1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,8 @@ static ssize_t raw1394_write(struct file *file, const char __user * buffer,
return -EFAULT;
}

mutex_lock(&fi->state_mutex);

switch (fi->state) {
case opened:
retval = state_opened(fi, req);
Expand All @@ -2282,6 +2284,8 @@ static ssize_t raw1394_write(struct file *file, const char __user * buffer,
break;
}

mutex_unlock(&fi->state_mutex);

if (retval < 0) {
free_pending_request(req);
} else {
Expand Down

0 comments on commit c9d51d6

Please sign in to comment.