aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2011-06-18 20:34:01 +0200
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-05-17 11:20:58 -0400
commit668414492fae0b4604405f00986afa8f3258d5e1 (patch)
tree2a5890f1f2d865db9b1b00ce4f071e4f20af6f89 /drivers/net/wireless
parent2ae35134383c9241ac5ea299ada9b67f5cb30061 (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: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'drivers/net/wireless')
0 files changed, 0 insertions, 0 deletions