From: Bartlomiej Zolnierkiewicz Date: Tue, 24 Mar 2009 22:22:54 +0000 (+0100) Subject: ide: fix kmalloc() failure handling in ide_driveid_update() X-Git-Tag: v2.6.30-rc1~672^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f40c9b0b65b5635e2e13dfa068bd56fe7a8ff98;p=pandora-kernel.git ide: fix kmalloc() failure handling in ide_driveid_update() * Doing kmalloc() in the middle of command execution is not only ugly but leaves drive waiting to send data on kmalloc() failure. Fix it. While at it: * Unify error code paths. * Fixup error message to be more useful and add missing KERN_ERR level. * Rename 'stat' variable to 's'. Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed