From 4b4447c99849dad49a7d9ac223e68e9e957fecd2 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 23 Jan 2004 19:36:41 -0800 Subject: [PATCH] [PATCH] The RAW_GETBIND compat_ioctl fails From: James Cross 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. --- fs/compat_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 9c57517d58da5..e8b5a13305069 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -2426,7 +2426,7 @@ static int get_raw32_request(struct raw_config_request *req, struct raw32_config __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; } -- 2.53.0