On Mon, 29 Jan 2007 21:18:38 -0500
Mike Christie <[EMAIL PROTECTED]> wrote:
> Ok. here is a fix with the overflow check sg.c has. Patch
> was made against Linus's tree and tested with nero.
>
> Userspace does not send us jiffies. Use msecs_to_jiffies
> and check for overflow like sg.c
>
> Signed-off-by: Mike Christie <[EMAIL PROTECTED]>
>
> diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
> index 2528a0c..5ca72c5 100644
> --- a/block/scsi_ioctl.c
> +++ b/block/scsi_ioctl.c
> @@ -223,7 +223,7 @@ static int verify_command(struct file *f
> static int sg_io(struct file *file, request_queue_t *q,
> struct gendisk *bd_disk, struct sg_io_hdr *hdr)
> {
> - unsigned long start_time;
> + unsigned long start_time. timeout;
you'll be wanting a comma there.
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html