summaryrefslogtreecommitdiffstats
path: root/lib/lru_cache.c
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2011-06-18 20:34:01 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-06-21 23:20:06 +0200
commit8440f4b19494467883f8541b7aa28c7bbf6ac92b (patch)
tree3682e034553d8b9ac676e17b144fe5b15cbb0174 /lib/lru_cache.c
parentPM: Rename dev_pm_info.in_suspend to is_prepared (diff)
downloadlinux-8440f4b19494467883f8541b7aa28c7bbf6ac92b.tar.xz
linux-8440f4b19494467883f8541b7aa28c7bbf6ac92b.zip
PM: Free memory bitmaps if opening /dev/snapshot fails
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> Cc: stable@kernel.org
Diffstat (limited to 'lib/lru_cache.c')
0 files changed, 0 insertions, 0 deletions