[PATCH] The RAW_GETBIND compat_ioctl fails
From: James Cross
Date: Thu Jan 22 2004 - 03:35:22 EST
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/