aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorAlexander Viro <[email protected]>2006-01-14 15:29:55 -0500
committerLinus Torvalds <[email protected]>2006-01-14 12:38:17 -0800
commit7c7dce9209161eb260cdf9e9172f72c3a02379e6 (patch)
tree81135190b6aadfc9126dcbff63710cd97fe5b6a1 /scripts/basic/split-include.c
parent12dbf3fc4d06d2c0c4c44dc0612df04248b3cfd3 (diff)
[PATCH] Fix double decrement of mqueue_mnt->mnt_count in sys_mq_open
Fixed the refcounting on failure exits in sys_mq_open() and cleaned the logics up. Rules are actually pretty simple - dentry_open() expects vfsmount and dentry to be pinned down and it either transfers them into created struct file or drops them. Old code had been very confused in that area - if dentry_open() had failed either in do_open() or do_create(), we ended up dentry and mqueue_mnt dropped twice, once by dentry_open() cleanup and then by sys_mq_open(). Fix consists of making the rules for do_create() and do_open() same as for dentry_open() and updating the sys_mq_open() accordingly; that actually leads to more straightforward code and less work on normal path. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions