]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcea0645af0aff10abaa22f6281cad2a483629ba0
tree0a7ae888e38c2233b957bc0476d81bee7cc3e148
parent22d5f4652b949123fa33d7fe7fe4ff9a23d2e782
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