From: Ralph Campbell Date: Thu, 1 Jul 2010 20:25:45 +0000 (+0000) Subject: IB/qib: Clean up properly if qib_init() fails X-Git-Tag: v2.6.35-rc5~9^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=756a33b8dc3ed5c27685a130339de8a894d528a7;p=pandora-kernel.git IB/qib: Clean up properly if qib_init() fails If qib_init() fails, the driver fails to free memory, unregister device files, and unregister with the PCIe framework. The driver will unload without error but a subsequent driver load will cause the system to panic. This was found by changing the 7220 code to load the serdes microcode separately and not installing the microcode file. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier --- Reading git-diff-tree failed