watchdog: sch56xx-common: Add proper ref-counting of watchdog data
authorHans de Goede <hdegoede@redhat.com>
Tue, 22 May 2012 09:40:27 +0000 (11:40 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 30 May 2012 05:55:46 +0000 (07:55 +0200)
This fixes referencing free-ed memory in the corner case where /dev/watchdog
is open when the platform driver gets unbound from the platform device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/hwmon/sch56xx-common.c

Simple merge