Re: [PATCH v2] hwmon: (applesmc) fix UB and udelay overflow

From: Cengiz Can
Date: Mon Sep 30 2019 - 17:46:46 EST


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>