[lm-sensors] PATCH: hwmon fschmd: Fix a memleak on multiple opens of /dev/watchdog

Hans de Goede hdegoede at redhat.com
Sat Jan 23 17:24:57 CET 2010


When /dev/watchdog gets opened a second time we return -EBUSY, but
we already have got a kref then, so we end up leaking our data struct.
This patch fixes this.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hwmon-fschmd-fix-memleak.patch
URL: <http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20100123/a268b127/attachment.ksh>


More information about the lm-sensors mailing list