• Al Viro's avatar
    slightly reduce idiocy in drivers/staging/bcm/Misc.c · 32aecdd3
    Al Viro authored
    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>
    32aecdd3
Misc.c 63.6 KB