Re: memory leak in sr_ioctl.c in Linux 2.2.12/13

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 6 Dec 1999 17:57:04 +0000 (GMT)


> - 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.

Alan

-
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/