[PATCH v11 06/24] coresight: add try_get_module() in coresight_grab_device()

Suzuki K Poulose suzuki.poulose at arm.com
Tue Sep 15 07:08:08 EDT 2020


On 09/15/2020 11:40 AM, Tingwei Zhang wrote:
> When coresight device is in an active session, driver module of
> that device should not be removed. Use try_get_module() in
> coresight_grab_device() to prevent module to be unloaded.
> Use get_device()/put_device() to protect device data
> in the middle of active session.
> 
> Signed-off-by: Tingwei Zhang <tingwei at codeaurora.org>
> Tested-by: Mike Leach <mike.leach at linaro.org>
> Suggested-by: Suzuki K Poulose <suzuki.poulose at arm.com>

Reviewed-by: Suzuki K Poulose <suzuki.poulose at arm.com>




More information about the linux-arm-kernel mailing list