git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7de2cf
)
econet: fix locking
author
Eric Dumazet
<eric.dumazet@gmail.com>
Wed, 9 Jun 2010 16:33:05 +0000
(16:33 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 12 Jun 2010 01:37:08 +0000
(18:37 -0700)
econet lacks proper locking. It holds econet_lock only when inserting or
deleting an entry in econet_sklist, not during lookups.
- convert econet_lock from rwlock to spinlock
- use econet_lock in ec_listening_socket() lookup
- use appropriate sock_hold() / sock_put() to avoid corruptions.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/econet/af_econet.c
patch
|
blob
|
history
diff --cc
net/econet/af_econet.c
Simple merge