lkml.org 
[lkml]   [1999]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: memory leak in sr_ioctl.c in Linux 2.2.12/13
On Mon, Dec 06, 1999 at 05:57:04PM +0000, Alan Cox wrote:
> > - if (lba < 0 || lba >= scsi_CDs[target].capacity)
> > +
> > + if (lba < 0 || lba >= scsi_CDs[target].capacity) {
> > + scsi_free(raw);
> > return -EINVAL;
> > + }
>
> Snap 8). Already done the same fix. That one is indeed nasty.

In the original source the scsi_free(raw) call ist protected
with a spinlock/spinunlock. But I don´t know if its necessary
here as well.

regards,

Martin


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

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.038 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site