dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/ide
Elias Oltmanns e415e495f8 ide: Two fixes regarding memory allocation
In function ide_devset_execute() we should use __GFP_WAIT rather than
GFP_KERNEL. Also, the allocation cannot possibly fail at that point.
More importantly, there is a potential memory leak in the device probing
code. The infrastructure seems rather complex and I hope I haven't messed
anything up by trying to fix this.

Signed-off-by: Elias Oltmanns <eo@nebensachen.de>
[bart: remove superfluous ide_lock taking]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-10-13 21:39:45 +02:00
..
arm ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
h8300 ide: remove [ata_]select_t 2008-10-13 21:39:40 +02:00
legacy ide: remove [ata_]select_t 2008-10-13 21:39:40 +02:00
mips ide: remove superfluous ->waiting_for_dma checks 2008-10-13 21:39:38 +02:00
pci ide: ->ide_dma_clear_irq() -> ->clear_irq() 2008-10-13 21:39:42 +02:00
ppc ide: use 'drive->dn & 1' instead of drive->select.b.unit 2008-10-13 21:39:40 +02:00
Kconfig ide: remove CONFIG_BLK_DEV_IDE config option (take 2) 2008-10-13 21:39:33 +02:00
Makefile ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-acpi.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-atapi.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-cd.c ide-cd: no need to zero drive->special.all 2008-10-13 21:39:43 +02:00
ide-cd.h ide-cd: convert to using the new atapi_flags 2008-07-23 19:56:02 +02:00
ide-cd_ioctl.c ide: ide-cd_ioctl.c fix sparse integer as NULL pointer warnings 2008-07-23 19:56:02 +02:00
ide-cd_verbose.c block: replace sizeof(rq->cmd) with BLK_MAX_CDB 2008-04-29 14:48:55 +02:00
ide-disk.c ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-disk.h ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-disk_ioctl.c ide-disk: move all ioctl handling to ide-disk_ioctl.c 2008-10-13 21:39:45 +02:00
ide-disk_proc.c ide-disk: move /proc handling to ide-disk_proc.c (take 3) 2008-10-13 21:39:45 +02:00
ide-dma.c ide: use 'drive->dn & 1' instead of drive->select.b.unit 2008-10-13 21:39:40 +02:00
ide-floppy.c ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) 2008-10-13 21:39:44 +02:00
ide-floppy.h ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) 2008-10-13 21:39:44 +02:00
ide-floppy_ioctl.c ide-floppy: move all ioctl handling to ide-floppy_ioctl.c (take 2) 2008-10-13 21:39:44 +02:00
ide-floppy_proc.c ide-floppy: move /proc handling to ide-floppy_proc.c (take 2) 2008-10-13 21:39:44 +02:00
ide-generic.c ide-generic: remove no longer needed ide_probe_legacy() 2008-10-13 21:39:42 +02:00
ide-io.c ide: Two fixes regarding memory allocation 2008-10-13 21:39:45 +02:00
ide-ioctls.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-iops.c ide: factor out reset error reporting from reset_pollfunc() 2008-10-13 21:39:41 +02:00
ide-lib.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-pio-blacklist.c ide: move PIO blacklist to ide-pio-blacklist.c 2008-07-16 20:33:39 +02:00
ide-pnp.c ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
ide-probe.c ide: Two fixes regarding memory allocation 2008-10-13 21:39:45 +02:00
ide-proc.c ide: add device flags 2008-10-13 21:39:36 +02:00
ide-scan-pci.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-tape.c ide: set IDE_AFLAG_DRQ_INTERRUPT in do_identify() 2008-10-13 21:39:43 +02:00
ide-taskfile.c ide: merge all TASKFILE_NO_DATA data phase handlers into taskfile_no_intr() 2008-10-13 21:39:41 +02:00
ide-timings.c ide: include <linux/hdreg.h> only when needed 2008-10-10 22:39:27 +02:00
ide.c ide-disk: move all ioctl handling to ide-disk_ioctl.c 2008-10-13 21:39:45 +02:00
setup-pci.c ide: add proper PCI PM support (v2) 2008-10-10 22:39:32 +02:00