]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix a locking bug in gianfar's sysfs code
authorAndy Fleming <afleming@freescale.com>
Fri, 2 May 2008 18:00:30 +0000 (13:00 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 6 May 2008 16:01:34 +0000 (12:01 -0400)
commitbc1b1ca06b84ef92f4500f049d5547e1b7433e99
tree1ee677ebfe4cc3ecf4e2b9deffda26a264c1426c
parentd1c204cdd341187decb761c6f69c511013d67635
gianfar: Fix a locking bug in gianfar's sysfs code

During sparse cleanup, found a locking bug.  Some of the sysfs functions were
acquiring a lock, and then returning in the event of an error.  We rearrange
the code so that the lock is released in error conditions, too.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/gianfar.c
drivers/net/gianfar.h
drivers/net/gianfar_sysfs.c