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)
commit54e2dc9341aca23d5241699e3b74c8dce609fa2d
tree0a7ae888e38c2233b957bc0476d81bee7cc3e148
parent85a2e40cb5053574cd3b1f33c00194309ce3704c
watchdog: sch56xx-common: Add proper ref-counting of watchdog data

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