Showing error 1306

User: Jiri Slaby
Error type: Leaving function in locked state
Error type description: Some lock is not unlocked on all paths of a function, so it is leaked
File location: drivers/scsi/BusLogic.c
Line in file: 533
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-21 20:30:05 UTC


Source:

 503                if (StatusRegister.sr.CommandInvalid ||
 504                    StatusRegister.sr.Reserved ||
 505                    StatusRegister.sr.DataInRegisterReady ||
 506                    StatusRegister.sr.CommandParameterRegisterBusy || !StatusRegister.sr.HostAdapterReady || !StatusRegister.sr.InitializationRequired || StatusRegister.sr.DiagnosticActive || StatusRegister.sr.DiagnosticFailure) {
 507                        BusLogic_SoftReset(HostAdapter);
 508                        udelay(1000);
 509                }
 510                BusLogic_CommandFailureReason = "Command Invalid";
 511                Result = -1;
 512                goto Done;
 513        }
 514        /*
 515           Handle Excess Parameters Supplied conditions.
 516         */
 517        if (ParameterLength > 0) {
 518                BusLogic_CommandFailureReason = "Excess Parameters Supplied";
 519                Result = -1;
 520                goto Done;
 521        }
 522        /*
 523           Indicate the command completed successfully.
 524         */
 525        BusLogic_CommandFailureReason = NULL;
 526        Result = ReplyBytes;
 527        /*
 528           Restore the interrupt status if necessary and return.
 529         */
 530      Done:
 531        if (!HostAdapter->IRQ_ChannelAcquired)
 532                local_irq_restore(ProcessorFlags);
 533        return Result;
 534}
 535
 536
 537/*
 538  BusLogic_AppendProbeAddressISA appends a single ISA I/O Address to the list
 539  of I/O Address and Bus Probe Information to be checked for potential BusLogic
 540  Host Adapters.
 541*/
 542
 543static void __init BusLogic_AppendProbeAddressISA(unsigned long IO_Address)
Show full sources