This patchset fixes two error handling errors in qla2xxx that caused crashes on QLA2200 on sparc64 when firmware init failed. With these patches, my Sun E280R does not crash anymore on boot but it still fails to start the firmware. Third patch fixes an obvious copy-paste typo of checking one pointer but freeing another. -- Meelis Roos (mroos@xxxxxxxx)