Thermal: Fix oops and unlocking in thermal_sys.c
This patch fixes the following mutex and NULL pointer problems in thermal_sys.c: * mutex_unlock fix in update_temperature function * mutex_unlock fix in bind_cdev function * Correct early return to continue in bind_cdev function * NULL check fix in bind_cdev function * NULL check fix in bind_tz function Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Reported-by: NSedat Dilek <sedat.dilek@gmail.com> Reported-by: NHugh Dickins <hughd@google.com> Signed-off-by: NDurgadoss R <durgadoss.r@intel.com> Signed-off-by: NSedat Dilek <sedat.dilek@gmail.com> Signed-off-by: NHugh Dickins <hughd@google.com> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
Showing
想要评论请 注册 或 登录