summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorAlexey Dobriyan2008-10-02 22:18:52 +0200
committerAlexey Dobriyan2008-10-10 02:18:54 +0200
commit300b994b74e75120dd1a48529552a44977e0a82a (patch)
tree5a8cb645c5a10182bbd0bb456285d362bcdd6f51 /fs/lockd
parentLinux 2.6.27 (diff)
downloadkernel-qcow2-linux-300b994b74e75120dd1a48529552a44977e0a82a.tar.gz
kernel-qcow2-linux-300b994b74e75120dd1a48529552a44977e0a82a.tar.xz
kernel-qcow2-linux-300b994b74e75120dd1a48529552a44977e0a82a.zip
proc: fix return value of proc_reg_open() in "too late" case
If ->open() wasn't called, returning 0 is misleading and, theoretically, oopsable: 1) remove_proc_entry clears ->proc_fops, drops lock, 2) ->open "succeeds", 3) ->release oopses, because it assumes ->open was called (single_release()). Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions