Skip to content
Commit 32aecdd3 authored by Al Viro's avatar Al Viro
Browse files

slightly reduce idiocy in drivers/staging/bcm/Misc.c



a) vfs_llseek() does *not* access userland pointers of any kind
b) neither does filp_close(), for that matter
c) ... nor filp_open()
d) vfs_read() does, but we do have a wrapper for that (kernel_read()),
so there's no need to reinvent it.
e) passing current->files to filp_close() on something that never
had been in descriptor table is pointless.

ISAGN: voodoo dolls to be used on voodoo programmers...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e4fad8e5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment