]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: fix memleak on failure in probe_for_drive()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:26 +0000 (12:46 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:26 +0000 (12:46 +0100)
commit69197ad70ef6b854988299c1377864f9755cd03d
treecf467f7a7701b55b18488538ab0a7cf9df50ec27
parent304ffd6d3a145901ac570b8afb6c9936a83c3392
ide: fix memleak on failure in probe_for_drive()

Always free drive->id in probe_for_drive() if device is not present.

While at it:
- remove dead IDE_DFLAG_DEAD flag
- remove superfluous IDE_DFLAG_PRESENT check

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-probe.c
include/linux/ide.h