-
由 Yang Yingliang 提交于
del_timer() does not wait until the timer handler finishing. This means that the timer handler may still be running after the driver's remove function has finished, which would result in a use-after-free. Fix it by calling del_timer_sync(), which makes sure the timer handler has finished. Reported-by: NHulk Robot <hulkci@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NDipen Patel <dipenp@nvidia.com> Acked-by: NDipen Patel <dipenp@nvidia.com> Signed-off-by: NThierry Reding <treding@nvidia.com>
0668e8cc