mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
linux-rp-2.6.22+2.6.23-rc4: Release console semaphore on an error path.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2813 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
drivers/char/vt_ioctl.c | 4 ++--
|
drivers/char/vt_ioctl.c | 8 +++++---
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
Index: linux-2.6.22/drivers/char/vt_ioctl.c
|
Index: linux-2.6.22/drivers/char/vt_ioctl.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- linux-2.6.22.orig/drivers/char/vt_ioctl.c 2007-07-09 01:32:17.000000000 +0200
|
--- linux-2.6.22.orig/drivers/char/vt_ioctl.c 2007-07-09 01:32:17.000000000 +0200
|
||||||
+++ linux-2.6.22/drivers/char/vt_ioctl.c 2007-09-27 11:05:29.000000000 +0200
|
+++ linux-2.6.22/drivers/char/vt_ioctl.c 2007-09-27 11:58:42.000000000 +0200
|
||||||
@@ -770,6 +770,7 @@
|
@@ -770,6 +770,7 @@
|
||||||
/*
|
/*
|
||||||
* Switching-from response
|
* Switching-from response
|
||||||
@@ -30,9 +30,15 @@ Index: linux-2.6.22/drivers/char/vt_ioctl.c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -813,6 +812,7 @@
|
@@ -810,9 +809,12 @@
|
||||||
if (arg != VT_ACKACQ)
|
/*
|
||||||
|
* If it's just an ACK, ignore it
|
||||||
|
*/
|
||||||
|
- if (arg != VT_ACKACQ)
|
||||||
|
+ if (arg != VT_ACKACQ) {
|
||||||
|
+ release_console_sem();
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
+ }
|
||||||
}
|
}
|
||||||
+ release_console_sem();
|
+ release_console_sem();
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
require linux-rp.inc
|
require linux-rp.inc
|
||||||
|
|
||||||
PR = "r5"
|
PR = "r6"
|
||||||
|
|
||||||
DEFAULT_PREFERENCE = "-1"
|
DEFAULT_PREFERENCE = "-1"
|
||||||
DEFAULT_PREFERENCE_htcuniversal = "1"
|
DEFAULT_PREFERENCE_htcuniversal = "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user