]> git.hungrycats.org Git - linux/commitdiff
[PATCH] The RAW_GETBIND compat_ioctl fails
authorAndrew Morton <akpm@osdl.org>
Sat, 24 Jan 2004 03:36:41 +0000 (19:36 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 24 Jan 2004 03:36:41 +0000 (19:36 -0800)
From: James Cross <jscross@veritas.com>

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

index 9c57517d58da5631a99f6eff8042c95825c51251..e8b5a1330506909d181a65e32c92b17d94584b12 100644 (file)
@@ -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;
 }