2020-07-02 02:12:26

by Xu Wang

[permalink] [raw]
Subject: [PATCH] net: cisco : use set_current_state macro

Use set_current_state macro instead of current->state = TASK_RUNNING.

Signed-off-by: Xu Wang <[email protected]>
---
drivers/net/wireless/cisco/airo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/cisco/airo.c b/drivers/net/wireless/cisco/airo.c
index 827bb6d74815..f0bcb67095f1 100644
--- a/drivers/net/wireless/cisco/airo.c
+++ b/drivers/net/wireless/cisco/airo.c
@@ -3113,7 +3113,7 @@ static int airo_thread(void *data) {
}
break;
}
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
remove_wait_queue(&ai->thr_wait, &wait);
locked = 1;
}
--
2.17.1


2020-07-15 11:27:23

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] airo: use set_current_state macro

Xu Wang <[email protected]> wrote:

> Use set_current_state macro instead of current->state = TASK_RUNNING.
>
> Signed-off-by: Xu Wang <[email protected]>

Patch applied to wireless-drivers-next.git, thanks.

b28bd97c1c19 airo: use set_current_state macro

--
https://patchwork.kernel.org/patch/11637715/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches