]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Thermal: Fix oops and unlocking in thermal_sys.c
authorHugh Dickins <hughd@google.com>
Thu, 27 Sep 2012 23:48:28 +0000 (16:48 -0700)
committerZhang Rui <rui.zhang@intel.com>
Fri, 28 Sep 2012 00:20:00 +0000 (08:20 +0800)
commit76bb4ad132fdfb30383f035e511a32a183503406
treed1f863664e9c000b9c616ebb830ca5813c42794b
parent5d8d7080e52419eb7119c8388acdaef0b68ab9ef
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: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Reported-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
drivers/thermal/thermal_sys.c