lkml.org 
[lkml]   [2004]   [Jan]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] The RAW_GETBIND compat_ioctl fails
FromJames Cross <>
Date22 Jan 2004 08:53:38 +0000
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:00    [W:0.384 / U:0.050 seconds]
©2003-2008 Jasper Spaans