clk: max77686: Avoid double free at remove time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 7 Jan 2013 01:05:19 +0000 (02:05 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 16 Jan 2013 00:16:26 +0000 (16:16 -0800)
commitf1ba28a1f0fa16f3d0e78d199f3f9bf13e2d487b
tree1bf3d3566e11abf429bd1675dd0eee353db2a594
parente4eda8e0654c19cd7e3d143b051f3d5c213f0b43
clk: max77686: Avoid double free at remove time

The clk_lookup entry is dropped at remove time by a call to
clkdev_drop(). That function frees the entry, which is also freed by the
driver core as it has been allocated through devm_kzalloc(). This
results in a double free.

Use kzalloc() instead of devm_kzalloc() to fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-max77686.c
This page took 0.025605 seconds and 5 git commands to generate.