RE: [ASAP] thermal_sys.c NULL ptr deref patch likely incomplete

2013-02-15 Thread Zhang, Rui
> -Original Message- > From: Andreas Mohr [mailto:a...@lisas.de] > Sent: Thursday, February 14, 2013 10:44 PM > To: Zhang, Rui > Cc: linux-kernel@vger.kernel.org > Subject: [ASAP] thermal_sys.c NULL ptr deref patch likely incomplete > Importance: High >

RE: [ASAP] thermal_sys.c NULL ptr deref patch likely incomplete

2013-02-15 Thread Zhang, Rui
Can you please attach your config file? Thanks, rui > -Original Message- > From: Andreas Mohr [mailto:a...@lisas.de] > Sent: Thursday, February 14, 2013 10:44 PM > To: Zhang, Rui > Cc: linux-kernel@vger.kernel.org > Subject: [ASAP] thermal_sys.c NULL ptr deref patch

[ASAP] thermal_sys.c NULL ptr deref patch likely incomplete

2013-02-14 Thread Andreas Mohr
Hi, I just had a # cat /sys/class/thermal/thermal_zone0/policy (null) When looking at the code (on my -rc7), I saw: drivers/thermal/thermal_sys.c static ssize_t policy_show(struct device *dev, struct device_attribute *devattr, char *buf) { struct thermal_zone_device *tz = to_thermal_