[PATCH] ide: remove kmalloc() from ide_unregister()
tmp_hwif should not be kmalloc()ed in ide_unregister(). If the kmalloc fails, there is no possible error recovery. This patch makes tmp_hwif static, protected by ide_cfg_sem. Signed-off-by: Jorn Engel <joern@wh.fh-wedel.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing
Please register or sign in to comment