]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ina2xx: Avoid double reference counting from get_task_struct/put_task_struct()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 21 Oct 2021 12:42:54 +0000 (20:42 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 17 Nov 2021 17:51:34 +0000 (17:51 +0000)
commit4f474a0f41988b97048e5bf04768b500c1cab41e
treea447c126b32a41929cf236e796de550db54a0b9b
parent3a52c126c95c9bae26838a8a1de21b049fd3b09b
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>
drivers/iio/adc/ina2xx-adc.c