Free the adap structure only after we are done using it. This patch just moves the put_device() down a bit to avoid the use after free.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2842
(In reply to 小龙 from comment #1) > The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2842 merged