diff options
| author | 2021-10-21 20:42:54 +0800 | |
|---|---|---|
| committer | 2021-11-17 17:51:34 +0000 | |
| commit | 2c4ce5041cd5d66875137a854b5e19672dce19a5 (patch) | |
| tree | a447c126b32a41929cf236e796de550db54a0b9b /include/linux | |
| parent | iio: adc: ina2xx: Make use of the helper macro kthread_run() (diff) | |
| download | linux-dev-2c4ce5041cd5d66875137a854b5e19672dce19a5.tar.xz linux-dev-2c4ce5041cd5d66875137a854b5e19672dce19a5.zip | |
iio: adc: ina2xx: Avoid double reference counting from get_task_struct/put_task_struct()
kthread_run() and kthread_stop() already do reference
counting of the task, so remove get_task_struct/put_task_struct()
to avoid double reference counting.
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Link: https://lore.kernel.org/r/20211021124254.3247-2-caihuoqing@baidu.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
