Showing error 1296

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/tlan.c
Line in file: 3141
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-21 20:30:05 UTC


Source:

3111
3112        outw(TLAN_NET_SIO, dev->base_addr + TLAN_DIO_ADR);
3113        sio = dev->base_addr + TLAN_DIO_DATA + TLAN_NET_SIO;
3114
3115        if (!in_irq())
3116                spin_lock_irqsave(&priv->lock, flags);
3117
3118        TLan_MiiSync( dev->base_addr );
3119
3120        minten = TLan_GetBit( TLAN_NET_SIO_MINTEN, sio );
3121        if ( minten )
3122                TLan_ClearBit( TLAN_NET_SIO_MINTEN, sio );
3123
3124        TLan_MiiSendData( dev->base_addr, 0x1, 2 );        /* Start ( 01b ) */
3125        TLan_MiiSendData( dev->base_addr, 0x1, 2 );        /* Write ( 01b ) */
3126        TLan_MiiSendData( dev->base_addr, phy, 5 );        /* Device #      */
3127        TLan_MiiSendData( dev->base_addr, reg, 5 );        /* Register #    */
3128
3129        TLan_MiiSendData( dev->base_addr, 0x2, 2 );        /* Send ACK */
3130        TLan_MiiSendData( dev->base_addr, val, 16 );        /* Send Data */
3131
3132        TLan_ClearBit( TLAN_NET_SIO_MCLK, sio );        /* Idle cycle */
3133        TLan_SetBit( TLAN_NET_SIO_MCLK, sio );
3134
3135        if ( minten )
3136                TLan_SetBit( TLAN_NET_SIO_MINTEN, sio );
3137
3138        if (!in_irq())
3139                spin_unlock_irqrestore(&priv->lock, flags);
3140
3141} /* TLan_MiiWriteReg */
3142
3143
3144
3145
3146/*****************************************************************************
3147******************************************************************************
3148
3149        ThunderLAN Driver Eeprom routines
3150
3151        The Compaq Netelligent 10 and 10/100 cards use a Microchip 24C02A
Show full sources