Re: [2.6 patch] drivers/scsi/sg.c: several against 2.6.12-rc1

2005-03-28 Thread Yum Rayan
In the diff >+ if (old_hdr) >+ kfree(old_hdr); >+ return retval; The check for NULL is not needed. Thanks, Rayan On Mon, 28 Mar 2005 19:48:10 +1000, Douglas Gilbert <[EMAIL PROTECTED]> wrote: > The attachment combines the most recent patch from > Yum Rayan <[EMAIL PROTEC

[2.6 patch] drivers/scsi/sg.c: several against 2.6.12-rc1

2005-03-28 Thread Douglas Gilbert
The attachment combines the most recent patch from Yum Rayan <[EMAIL PROTECTED]> (to reduce sg stack usage), Adrian Bunk <[EMAIL PROTECTED]> (to fix check after use) and me (fix elapsed time calculation (duration) on ia64 machines). I have modified the patch from Yum Rayan so kmalloc() in sg_read()