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

12r-ide-tasksize-fix.bz2

Reply via email to