• Jens Axboe's avatar
    [PATCH] ide-cd/scsi/block fixups for SG_IO · 4533ed18
    Jens Axboe authored
    - Kill the bogus ret transformation in block/ioctl.c if we return
      -EINVAL, doesn't make any sense.
    
    - Don't allow sg_reserved_size to be set bigger than a request we can
      deal with...
    
    - timeout fixes.
    
    - Cleanup of user access.
    
    - Set SAM_STAT_CHECK_CONDITION, not CHECK_CONDITION which needs to be
      bit shifted 1 up.
    
    - Set sense_len correctly.
    
    - Account sense_len correctly, don't just increment by 1...
    
    - Use the correct pointer in post transform.
    
    - Fix oops in bio_map_user(), it must get the extra reference prior to
      calling bio_unmap_user() itself too.
    4533ed18
ioctl.c 5.21 KB