/[linux-patches]/genpatches-2.6/trunk/2.6.14/1700_rose-locking-fix.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1700_rose-locking-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 10 months ago) by johnm
File MIME type: text/x-diff
File size: 863 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From: Andrew Morton <akpm@osdl.org>
2 Date: Fri, 28 Oct 2005 22:12:02 +0000 (-0700)
3 Subject: [ROSE]: rose_heartbeat_expiry() locking fix
4 X-Git-Tag: v2.6.15-rc1
5 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a3d7a9d77533d7516a8cfb8e2b612cd5ead4fa59
6
7 [ROSE]: rose_heartbeat_expiry() locking fix
8
9 Missing unlock, as noted by Ted Unangst <tedu@coverity.com>.
10
11 Signed-off-by: Andrew Morton <akpm@osdl.org>
12 Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
13 ---
14
15 --- a/net/rose/rose_timer.c
16 +++ b/net/rose/rose_timer.c
17 @@ -138,6 +138,7 @@ static void rose_heartbeat_expiry(unsign
18 is accepted() it isn't 'dead' so doesn't get removed. */
19 if (sock_flag(sk, SOCK_DESTROY) ||
20 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
21 + bh_unlock_sock(sk);
22 rose_destroy_socket(sk);
23 return;
24 }

  ViewVC Help
Powered by ViewVC 1.1.20