[patch] drm/tegra: sor: Double free on error

2016-07-06 Thread Alexandre Courbot
On Mon, Jul 4, 2016 at 4:45 PM, Dan Carpenter wrote: > "brick" is allocated with devm_kzalloc() so freeing it with kfree() > leads to a double free. We can just delete it. That makes perfect sense. Reviewed-by: Alexandre Courbot

[patch] drm/tegra: sor: Double free on error

2016-07-04 Thread Dan Carpenter
"brick" is allocated with devm_kzalloc() so freeing it with kfree() leads to a double free. We can just delete it. Fixes: a7ba8310c7f5 ('drm/tegra: sor: Implement sor1_brick clock') Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 8425eda