projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b79d4a2
)
btrfs-progs: fix scrub error return from pthread_mutex_lock
author
Eric Sandeen
<sandeen@redhat.com>
Mon, 4 Mar 2013 22:49:40 +0000
(16:49 -0600)
committer
David Sterba
<dsterba@suse.cz>
Sun, 10 Mar 2013 15:06:37 +0000
(16:06 +0100)
If pthread_mutex_lock() fails it returns the error in ret,
and does not set errno.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cmds-scrub.c
patch
|
blob
|
history
diff --git
a/cmds-scrub.c
b/cmds-scrub.c
index
91ace9c
..
b0fcde6
100644
(file)
--- a/
cmds-scrub.c
+++ b/
cmds-scrub.c
@@
-763,7
+763,7
@@
static int scrub_write_progress(pthread_mutex_t *m, const char *fsid,
ret = pthread_mutex_lock(m);
if (ret) {
- err = -
errno
;
+ err = -
ret
;
goto out;
}