[PATCH] The RAW_GETBIND compat_ioctl fails

From: James Cross (jscross_at_veritas.com)
Date: 01/22/04

  • Next message: Robin Rosenberg: "Re: Nvidia drivers and 2.6.x kernel"
    To: linux-kernel@vger.kernel.org
    Date:	22 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/


  • Next message: Robin Rosenberg: "Re: Nvidia drivers and 2.6.x kernel"

    Relevant Pages