Skip to contentSkip to conversation

trivial: fix arg reversal in fs/proc/page.c

PATCH New Helge Bahmann 1 participant 1 message Feb 19, 2009 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: fix arg reversal in fs/proc/page.c

Fix arguments passed to macro in wrong order (expr always evaluates to zero otherwise)

fs/proc/page.c +0 -0
index 767d95a..2d13451 100644
@@ -107,7 +107,7 @@ static ssize_t kpageflags_read(struct file *file, char 

__user *buf,
else
kflags = ppage->flags;

- uflags = kpf_copy_bit(KPF_LOCKED, PG_locked, kflags) |
+ uflags = kpf_copy_bit(kflags, KPF_LOCKED, PG_locked) |
kpf_copy_bit(kflags, KPF_ERROR, PG_error) | kpf_copy_bit(kflags, KPF_REFERENCED, PG_referenced) | kpf_copy_bit(kflags, KPF_UPTODATE, PG_uptodate) |

Signature · 15 lines
Dipl. Math.
Helge Bahmann
Berater
Geschäftsbereich Hochsicherheit
secunet Security Networks AG
Ammonstraße 74
01067 Dresden, Germany
Fon: +49 201 54 54-3586
Fax: +49 201 54 54-1323
Email: [email protected]

Sitz: Kronprinzenstraße 30, 45128 Essen
Amtsgericht Essen HRB 13615
Vorstand: Dr. Rainer Baumgart, Thomas Koelzer, Thomas Pleines
Aufsichtsratsvorsitzender: Dr. Karsten Ottenberg