public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rfkill bug fixed in rfkill_set_sw_state
@ 2010-02-26  4:55 정재훈
  2010-03-02 20:50 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: 정재훈 @ 2010-02-26  4:55 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.

[-- Attachment #2: Type: text/plain, Size: 712 bytes --]

Don’t work expected operation in __rfkill_set_sw_state. 
when rfkill initialized. Rfkill’s blocked & unblocked is operating on the
contrary.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

---
 net/rfkill/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index c224cb2..dcc2d38 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -488,7 +488,7 @@ static void __rfkill_set_sw_state(struct rfkill
*rfkill, bool blocked)
 	if (rfkill->state & RFKILL_BLOCK_SW_SETCALL)
 		bit = RFKILL_BLOCK_SW_PREV;
 
-	if (blocked)
+	if (!blocked)
 		rfkill->state |= bit;
 	else
 		rfkill->state &= ~bit;
-- 
1.6.0.4


[-- Attachment #3: winmail.dat --]
[-- Type: application/ms-tnef, Size: 7858 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] rfkill bug fixed in rfkill_set_sw_state
@ 2010-02-25  4:26 정재훈
  0 siblings, 0 replies; 6+ messages in thread
From: 정재훈 @ 2010-02-25  4:26 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.

[-- Attachment #2: Type: text/plain, Size: 714 bytes --]

Don’t work expected operation in __rfkill_set_sw_state. 
when rfkill initialized. Rfkill’s blocked & unblocked is operating on the
contrary.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

---
 net/rfkill/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index c224cb2..dcc2d38 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -488,7 +488,7 @@ static void __rfkill_set_sw_state(struct rfkill
*rfkill, bool blocked)
 	if (rfkill->state & RFKILL_BLOCK_SW_SETCALL)
 		bit = RFKILL_BLOCK_SW_PREV;
 
-	if (blocked)
+	if (!blocked)
 		rfkill->state |= bit;
 	else
 		rfkill->state &= ~bit;
-- 
1.6.0.4



[-- Attachment #3: winmail.dat --]
[-- Type: application/ms-tnef, Size: 7970 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-03 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26  4:55 [PATCH] rfkill bug fixed in rfkill_set_sw_state 정재훈
2010-03-02 20:50 ` Andrew Morton
2010-03-03  0:47   ` Jaehoon Chung
2010-03-03  9:37     ` Alan Jenkins
2010-03-03 10:14       ` Jaehoon Chung
  -- strict thread matches above, loose matches on Subject: below --
2010-02-25  4:26 정재훈

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox