Thread (11 messages) flat view 11 messages, 3 authors, 2017-07-19

Re: [PATCH 1/9] mm, page_alloc: rip out ZONELIST_ORDER_ZONE

From: Mel Gorman <hidden>
Date: 2017-07-14 13:01:15
Also in: linux-mm, lkml

On Fri, Jul 14, 2017 at 01:56:16PM +0100, Mel Gorman wrote:
quoted
 	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help