| To: | kdb@xxxxxxxxxxx |
|---|---|
| Subject: | [patch] bugfix for kdb |
| From: | Tigran Aivazian <tigran@xxxxxxxxxxx> |
| Date: | Thu, 17 Aug 2000 20:14:30 +0100 (BST) |
| Sender: | owner-kdb@xxxxxxxxxxx |
hi,
Rather obvious bugfix. Against kdb v1.3.
Regards,
Tigran
--- vmalloc.c.0 Thu Aug 17 20:12:20 2000
+++ vmalloc.c Thu Aug 17 20:12:40 2000
@@ -39,6 +39,7 @@
{
struct vm_struct *vp;
+ read_lock(&vmlist_lock);
for(vp=vmlist; vp; vp = vp->next) {
unsigned long end = (unsigned long)vp->addr + vp->size;
@@ -47,9 +48,11 @@
if ((starta >= (unsigned long)vp->addr)
&& (starta < end)
&& (enda < end)) {
+ read_unlock(&vmlist_lock);
return 1;
}
}
+ read_unlock(&vmlist_lock);
return 0;
}
#endif
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Next by Date: | Re: [patch] bugfix for kdb, Scott Lurndal |
|---|---|
| Next by Thread: | Re: [patch] bugfix for kdb, Scott Lurndal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |