Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 04bd6922 authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman
Browse files

hwmon: (fschmd) Fix a memleak on multiple opens of /dev/watchdog


commit c453615f upstream.

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.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 659cba5b
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment