From: Hiroaki SHIMODA Date: Sat, 14 Jan 2012 07:10:21 +0000 (+0000) Subject: bql: Fix inconsistency between file mode and attr method. X-Git-Tag: v3.3-rc1~17^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=795d9a2538b205d9329f34798ec96503a07b7919;p=platform%2Fkernel%2Flinux-3.10.git bql: Fix inconsistency between file mode and attr method. There is no store() method for inflight attribute in the tx-/byte_queue_limits sysfs directory. So remove S_IWUSR bit. Signed-off-by: Hiroaki SHIMODA Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index f3dbd4f..a1727cd 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -929,7 +929,7 @@ static ssize_t bql_show_inflight(struct netdev_queue *queue, } static struct netdev_queue_attribute bql_inflight_attribute = - __ATTR(inflight, S_IRUGO | S_IWUSR, bql_show_inflight, NULL); + __ATTR(inflight, S_IRUGO, bql_show_inflight, NULL); #define BQL_ATTR(NAME, FIELD) \ static ssize_t bql_show_ ## NAME(struct netdev_queue *queue, \