Messages in this thread | | | Date | Tue, 7 Dec 1999 14:29:27 +0100 | From | Martin Vogt <> | Subject | Re: 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/
| |