From: Elias Oltmanns Date: Mon, 13 Oct 2008 19:39:45 +0000 (+0200) Subject: ide: Two fixes regarding memory allocation X-Git-Tag: v2.6.28-rc1~599^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e415e495f8294e536e09e6a15fba897cce4c0748;p=pandora-kernel.git 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 [bart: remove superfluous ide_lock taking] Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed