diff mbox

[2/4] instance: Fix set-my-args for empty arguments

Message ID 1467857393-3728-2-git-send-email-benh@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt July 7, 2016, 2:09 a.m. UTC
It would put the pointer and len in the wrong order in the instance>args
buffer.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 slof/fs/instance.fs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/slof/fs/instance.fs b/slof/fs/instance.fs
index 9e5c921..225a2bf 100644
--- a/slof/fs/instance.fs
+++ b/slof/fs/instance.fs
@@ -134,7 +134,7 @@  CONSTANT <instancevariable>
       2dup my-self instance>args 2!   \ | write into instance struct  ( old-addr len new-addr )
       swap move                       \ | and copy the args           ( )
    ELSE                               \ ELSE                          ( old-addr len )
-      my-self instance>args 2!        \ | set new args to zero, too   ( )
+      swap my-self instance>args 2!   \ | set new args to zero, too   ( )
    THEN                               \ FI
 ;