* [PATCH] The RAW_GETBIND compat_ioctl fails
@ 2004-01-22 8:53 James Cross
0 siblings, 0 replies; only message in thread
From: James Cross @ 2004-01-22 8:53 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
Hi,
The RAW_GETBIND compatibility ioctl call does convert properly between
the 32bit/64bit version of raw_config_request due to a trivial error,
and the ioctl call fails.
Thanks,
James
--- linux-2.6.2-rc1/fs/compat_ioctl.c.orig 2004-01-21 17:20:26.000000000 +0000
+++ linux-2.6.2-rc1/fs/compat_ioctl.c 2004-01-21 17:20:41.000000000 +0000
@@ -2426,7 +2426,7 @@
__get_user(hi_min, ((__u32*)(&user_req->block_minor) + 1));
req->block_major = lo_maj | (((__u64)hi_maj) << 32);
- req->block_minor = lo_min | (((__u64)lo_min) << 32);
+ req->block_minor = lo_min | (((__u64)hi_min) << 32);
return ret;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-22 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22 8:53 [PATCH] The RAW_GETBIND compat_ioctl fails James Cross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox