Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (6 weeks ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/fs/sysfs/file.c

    r30589 r31859  
    109109        const struct sysfs_ops *ops = sysfs_file_ops(of->kn);
    110110        struct kobject *kobj = of->kn->parent->priv;
    111         size_t len;
     111        ssize_t len;
    112112
    113113        /*
     
    118118                return 0;
    119119        len = ops->show(kobj, of->kn->priv, buf);
     120        if (len < 0)
     121                return len;
    120122        if (pos) {
    121123                if (len <= pos)
     
    124126                memmove(buf, buf + pos, len);
    125127        }
    126         return min(count, len);
     128        return min_t(ssize_t, count, len);
    127129}
    128130
Note: See TracChangeset for help on using the changeset viewer.