I spent quite some time to rewrite applesmc but I couldn't finish. Thanks for the loop fix. I did my reviewing part, if that matters.
Reported-by: Tomasz Paweł Gajc <tpgxyz@xxxxxxxxx> Link: https://github.com/ClangBuiltLinux/linux/issues/678 Debugged-by: Nathan Chancellor <natechancellor@xxxxxxxxx> Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> Build-tested-by: Nathan Chancellor <natechancellor@xxxxxxxxx>
Reviewed-by: Cengiz Can <cengiz@xxxxxxxxxx>