[PATCH] thinko in 2.2.17 task file code

From: willy tarreau (wtarreau@yahoo.fr)
Date: Wed Sep 13 2000 - 03:56:19 EST


Hi Andre,

I remember you were very tired when you wrote this
code. There's a little thinko in it, I believe :

int tasksize = (HDIO_DRIVE_TASK) ?
HDIO_DRIVE_TASK_HDR_SIZE : HDIO_DRIVE_CMD_HDR_SIZE;

should be :

int tasksize = (cmd==HDIO_DRIVE_TASK) ?
HDIO_DRIVE_TASK_HDR_SIZE : HDIO_DRIVE_CMD_HDR_SIZE;

I think this could only cause a 4-bytes overflow when
sending an HDIO_DRIVE_CMD.

anyway, here is the patch attached against
2.2.17-20000904.

Regards,
Willy

___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:20 EST