Showing error 984

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/net/e1000e/ich8lan.c
Line in file: 1925
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-03-02 21:35:18 UTC


Source:

1895        ret_val = e1000_acquire_swflag_ich8lan(hw);
1896        /* Whether or not the swflag was acquired, we need to reset the part */
1897        hw_dbg(hw, "Issuing a global reset to ich8lan");
1898        ew32(CTRL, (ctrl | E1000_CTRL_RST));
1899        msleep(20);
1900
1901        if (!ret_val) {
1902                /* release the swflag because it is not reset by
1903                 * hardware reset
1904                 */
1905                e1000_release_swflag_ich8lan(hw);
1906        }
1907
1908        ret_val = e1000e_get_auto_rd_done(hw);
1909        if (ret_val) {
1910                /*
1911                 * When auto config read does not complete, do not
1912                 * return with an error. This can happen in situations
1913                 * where there is no eeprom and prevents getting link.
1914                 */
1915                hw_dbg(hw, "Auto Read Done did not complete\n");
1916        }
1917
1918        ew32(IMC, 0xffffffff);
1919        icr = er32(ICR);
1920
1921        kab = er32(KABGTXD);
1922        kab |= E1000_KABGTXD_BGSQLBIAS;
1923        ew32(KABGTXD, kab);
1924
1925        return ret_val;
1926}
1927
1928/**
1929 *  e1000_init_hw_ich8lan - Initialize the hardware
1930 *  @hw: pointer to the HW structure
1931 *
1932 *  Prepares the hardware for transmit and receive by doing the following:
1933 *   - initialize hardware bits
1934 *   - initialize LED identification
1935 *   - setup receive address registers
Show full sources