This is a note to let you know that I've just added the patch titled
Staging: speakup: &&/|| confusion in silent_store()
to the 2.6.37-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
staging-speakup-confusion-in-silent_store.patch
and it can be found in the queue-2.6.37 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From e7bf352fcd85c33b0805da891fc97fea8b5e996e Mon Sep 17 00:00:00 2001
From: roel kluin <[email protected]>
Date: Mon, 3 Jan 2011 11:59:48 -0800
Subject: Staging: speakup: &&/|| confusion in silent_store()
From: roel kluin <[email protected]>
commit e7bf352fcd85c33b0805da891fc97fea8b5e996e upstream.
Fix test: the branch is always taken.
Signed-off-by: Roel Kluin <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/staging/speakup/kobjects.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/speakup/kobjects.c
+++ b/drivers/staging/speakup/kobjects.c
@@ -332,7 +332,7 @@ static ssize_t silent_store(struct kobje
unsigned long flags;
len = strlen(buf);
- if (len > 0 || len < 3) {
+ if (len > 0 && len < 3) {
ch = buf[0];
if (ch == '\n')
ch = '0';
Patches currently in stable-queue which might be from [email protected] are
queue-2.6.37/staging-speakup-confusion-in-silent_store.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable