ibm emac: Fix locking for enable/disable eob irq
authorAlistair Popple <alistair@popple.id.au>
Tue, 29 Oct 2013 23:50:38 +0000 (10:50 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2013 02:57:42 +0000 (22:57 -0400)
Calls to mal_enable_eob_irq perform a read-write-modify of a dcr to
enable device irqs which is protected by a spin lock. However calls to
mal_disable_eob_irq do not take the corresponding lock.

This patch resolves the problem by ensuring that calls to
mal_disable_eob_irq also take the lock.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found