diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2011-06-18 20:34:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-13 05:31:24 +0200 |
commit | 92e438c204e4ae51e706725b6c007591e62504f2 (patch) | |
tree | 18e412ea35ce0f561b5c6c2b9af0b93b3e6c95bc /kernel/srcu.c | |
parent | 20fea53565eb54fba2acd1820864002b6b26b669 (diff) |
PM: Free memory bitmaps if opening /dev/snapshot fails
commit 8440f4b19494467883f8541b7aa28c7bbf6ac92b upstream.
When opening /dev/snapshot device, snapshot_open() creates memory
bitmaps which are freed in snapshot_release(). But if any of the
callbacks called by pm_notifier_call_chain() returns NOTIFY_BAD, open()
fails, snapshot_release() is never called and bitmaps are not freed.
Next attempt to open /dev/snapshot then triggers BUG_ON() check in
create_basic_memory_bitmaps(). This happens e.g. when vmwatchdog module
is active on s390x.
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/srcu.c')
0 files changed, 0 insertions, 0 deletions