Skip to contentSkip to conversation

Small bugfix in signal code in exec.c

PATCH New Dave McCracken 1 participant 1 message Nov 28, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Small bugfix in signal code in exec.c

Here's a small bug, not likely to be hit often, but likely painful if it does trigger.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
[email protected] T/L 678-3059

-------------------------

fs/exec.c.new renamed from fs/exec.c +1 -1
@@ -586,7 +586,7 @@
 flush_failed:
 	spin_lock_irq(&current->sigmask_lock);
 	if (current->sig != oldsig) {
-		kfree(current->sig);
+		kmem_cache_free(sigact_cachep, current->sig);
 		current->sig = oldsig;
 	}
 	spin_unlock_irq(&current->sigmask_lock);