lkml.org 
[lkml]   [2005]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [03/07] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers
    On 4/27/05, Greg KH <gregkh@suse.de> wrote:
    >
    > -stable review patch. If anyone has any objections, please let us know.
    >

    While the patch is correct I'd have something like this as well:

    --- linux-2.6.11.orig/fs/sysfs/file.c
    +++ linux-2.6.11/fs/sysfs/file.c
    @@ -36,7 +36,7 @@ subsys_attr_store(struct kobject * kobj,
    {
    struct subsystem * s = to_subsys(kobj);
    struct subsys_attribute * sattr = to_sattr(attr);
    - ssize_t ret = 0;
    + ssize_t ret = -ENOSYS;

    if (sattr->store)
    ret = sattr->store(s,page,count);
    So writes without store handler would return "not implemented".

    (It is whitespace-mangled and therefore not a real patch - so no
    signed-off-by...)

    --
    Dmitry
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-27 21:46    [W:4.168 / U:0.984 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site