Commit 4b4447c9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] The RAW_GETBIND compat_ioctl fails

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.
parent a10c01a9
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment