From 350667d77a71138f1c6bbd5076d2036f648ad520 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Tue, 23 Sep 2003 09:46:08 -0700 Subject: [PATCH] [PATCH] 32-bit dev_t fallout: mips/kernel/sysirix.c Fix for typo in arch/mips/kernel/sysirix.c (spotted by Milton Miller) --- arch/mips/kernel/sysirix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/sysirix.c b/arch/mips/kernel/sysirix.c index 4e0e6c4290baa..67005f0e7212b 100644 --- a/arch/mips/kernel/sysirix.c +++ b/arch/mips/kernel/sysirix.c @@ -1274,7 +1274,7 @@ static int irix_xstat64_xlate(struct kstat *stat, void *ubuf) ks.st_pad4[4] = ks.st_pad4[5] = ks.st_pad4[6] = ks.st_pad4[7] = 0; /* Now write it all back. */ - return copy_to_user(ubuf, &ub, sizeof(ub)) ? -EFAULT : 0; + return copy_to_user(ubuf, &ks, sizeof(ks)) ? -EFAULT : 0; } asmlinkage int irix_xstat(int version, char *filename, struct stat *statbuf) -- 2.53.0