• Arnd Bergmann's avatar
    compat_ioctl: move SG_GET_REQUEST_TABLE handling · fd6c3d5a
    Arnd Bergmann authored
    SG_GET_REQUEST_TABLE is now the last ioctl command that needs a conversion
    handler. This is only used in a single file, so the implementation should
    be there.
    
    I'm trying to simplify it in the process, to get rid of
    the compat_alloc_user_space() and extra copy, by adding a
    put_compat_request_table() function instead, which copies the data in
    the right format to user space.
    
    Cc: linux-scsi@vger.kernel.org
    Cc: Doug Gilbert <dgilbert@interlog.com>
    Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
    Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    fd6c3d5a
compat_ioctl.c 6.06 KB