From: Laurent Pinchart Date: Mon, 7 Jan 2013 01:05:19 +0000 (+0100) Subject: clk: max77686: Avoid double free at remove time X-Git-Tag: v3.9-rc1~149^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1ba28a1f0fa16f3d0e78d199f3f9bf13e2d487b;p=pandora-kernel.git 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 Signed-off-by: Mike Turquette --- Reading git-diff-tree failed