From: Michal Kubecek Date: Sat, 18 Jun 2011 18:34:01 +0000 (+0200) Subject: PM: Free memory bitmaps if opening /dev/snapshot fails X-Git-Tag: v3.0-rc5~46^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8440f4b19494467883f8541b7aa28c7bbf6ac92b;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki Cc: stable@kernel.org --- Reading git-diff-tree failed