On Fri, Jul 14, 2017 at 01:56:16PM +0100, Mel Gorman wrote: > > if (!write) { > > - int len = sizeof("Default"); > > - if (copy_to_user(buffer, "Default", len)) > > + int len = sizeof("Node"); > > + if (copy_to_user(buffer, "Node", len)) > > return -EFAULT; > > Ok for the name. But what's with using sizeof? Bah, sizeof static compile-time string versus char *. Never mind. -- Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>