mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 7/16] befs: missing fs32_to_cpu() in debug.c
@ 2006-10-10 22:37 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2006-10-10 22:37 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Date: Sat, 24 Dec 2005 03:09:03 -0500

inode->mode is disk-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/befs/debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/befs/debug.c b/fs/befs/debug.c
index 3afd088..bb68370 100644
--- a/fs/befs/debug.c
+++ b/fs/befs/debug.c
@@ -124,7 +124,7 @@ #ifdef CONFIG_BEFS_DEBUG
 	befs_debug(sb, "  type %08x", fs32_to_cpu(sb, inode->type));
 	befs_debug(sb, "  inode_size %u", fs32_to_cpu(sb, inode->inode_size));
 
-	if (S_ISLNK(inode->mode)) {
+	if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) {
 		befs_debug(sb, "  Symbolic link [%s]", inode->data.symlink);
 	} else {
 		int i;
-- 
1.4.2.GIT



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-10 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 22:37 [PATCH 7/16] befs: missing fs32_to_cpu() in debug.c Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®