lkml.org 
[lkml]   [1997]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: ISSUE: 2.1.37-pre2 - NULL pointer bug in shm_swap() code
   Date: 	Fri, 2 May 1997 12:21:13 +0200
From: Wolfgang Wander <wwc@lars.desy.de>

However as soon as it comes to swapping of shm the kernel oopses:

Thanks Wolfgang for the extensive debugging on this one.
The bug is my fault, please try this fix.

--- ipc/shm.c.~1~ Wed Apr 30 23:34:27 1997
+++ ipc/shm.c Mon May 5 04:05:56 1997
@@ -806,7 +806,7 @@
flush_tlb_page(shmd, tmp);
/* continue looping through circular list */
} while (0);
- if ((shmd = shmd->vm_next_share) == shp->attaches)
+ if ((shmd = shmd->vm_next_share) == NULL)
break;
}

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:2.255 / U:1.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site