[PATCH 2/2] Fix unlock on error

2007-10-23 Thread Roel Kluin
Fix unlock on error
Signed-off-by: Roel Kluin <[EMAIL PROTECTED]>
---
diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c
index a0a9105..a6e6e78 100644
--- a/arch/mips/kernel/irixsig.c
+++ b/arch/mips/kernel/irixsig.c
@@ -426,6 +426,7 @@ asmlinkage int irix_sigprocmask(int how, irix_sigset_t 
__user *new,
break;
 
default:
+   spin_unlock_irq(>sighand->siglock);
return -EINVAL;
}
recalc_sigpending();
diff --git a/arch/mips/vr41xx/common/icu.c b/arch/mips/vr41xx/common/icu.c
index 1899601..11f5f72 100644
--- a/arch/mips/vr41xx/common/icu.c
+++ b/arch/mips/vr41xx/common/icu.c
@@ -525,6 +525,7 @@ static inline int set_sysint1_assign(unsigned int irq, 
unsigned char assign)
intassign1 |= (uint16_t)assign << 9;
break;
default:
+   spin_unlock_irq(>lock);
return -EINVAL;
}
 
@@ -592,6 +593,7 @@ static inline int set_sysint2_assign(unsigned int irq, 
unsigned char assign)
intassign3 |= (uint16_t)assign << 12;
break;
default:
+spin_unlock_irq(>lock);
return -EINVAL;
}
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/2] Fix unlock on error

2007-10-23 Thread Roel Kluin
Fix unlock on error
Signed-off-by: Roel Kluin [EMAIL PROTECTED]
---
diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c
index a0a9105..a6e6e78 100644
--- a/arch/mips/kernel/irixsig.c
+++ b/arch/mips/kernel/irixsig.c
@@ -426,6 +426,7 @@ asmlinkage int irix_sigprocmask(int how, irix_sigset_t 
__user *new,
break;
 
default:
+   spin_unlock_irq(current-sighand-siglock);
return -EINVAL;
}
recalc_sigpending();
diff --git a/arch/mips/vr41xx/common/icu.c b/arch/mips/vr41xx/common/icu.c
index 1899601..11f5f72 100644
--- a/arch/mips/vr41xx/common/icu.c
+++ b/arch/mips/vr41xx/common/icu.c
@@ -525,6 +525,7 @@ static inline int set_sysint1_assign(unsigned int irq, 
unsigned char assign)
intassign1 |= (uint16_t)assign  9;
break;
default:
+   spin_unlock_irq(desc-lock);
return -EINVAL;
}
 
@@ -592,6 +593,7 @@ static inline int set_sysint2_assign(unsigned int irq, 
unsigned char assign)
intassign3 |= (uint16_t)assign  12;
break;
default:
+spin_unlock_irq(desc-lock);
return -EINVAL;
}
 
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/