projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef7d1b2
)
[PATCH] sys_ioprio_set: minor do_each_thread+break fix
author
Oleg Nesterov
<oleg@tv-sign.ru>
Mon, 21 Aug 2006 06:33:23 +0000
(08:33 +0200)
committer
Jens Axboe
<axboe@suse.de>
Mon, 21 Aug 2006 06:33:23 +0000
(08:33 +0200)
From include/linux/sched.h:
* Careful: do_each_thread/while_each_thread is a double loop so
* 'break' will not work as expected - use goto instead.
*/
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Jens Axboe <axboe@suse.de>
fs/ioprio.c
patch
|
blob
|
history
diff --git
a/fs/ioprio.c
b/fs/ioprio.c
index 93aa5715f224cd5163e070473dc04e6d76409667..3db31038e9abe1eca5df57fdd94fce445a34c423 100644
(file)
--- a/
fs/ioprio.c
+++ b/
fs/ioprio.c
@@
-111,9
+111,9
@@
asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
continue;
ret = set_task_ioprio(p, ioprio);
if (ret)
-
break
;
+
goto free_uid
;
} while_each_thread(g, p);
-
+free_uid:
if (who)
free_uid(user);
break;