]> git.baikalelectronics.ru Git - kernel.git/commit
ks8851: Fix missing mutex_lock/unlock
authorMatt Renzelmann <mjr@cs.wisc.edu>
Fri, 13 Apr 2012 07:59:40 +0000 (07:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 18:04:47 +0000 (14:04 -0400)
commitc4e662ab98d1e152d66f6644f810bc7a2b1013a3
treea5bb998aa71933a045d43bcca7bac5a8a78478cb
parent2314d6d908009dcc9921428392686a8352404f82
ks8851: Fix missing mutex_lock/unlock

Move the ks8851_rdreg16 call above the call to request_irq and cache
the result for subsequent repeated use.  A spurious interrupt may
otherwise cause a crash.  Thanks to Stephen Boyd, Flavio Leitner, and
Ben Hutchings for feedback.

Signed-off-by: Matt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c