[PATCH -next] drm/tegra: sor: Fix invalid kfree of devm_kzalloc allocated data

2016-07-07 Thread Alexandre Courbot
On Mon, Jul 4, 2016 at 4:19 PM, wrote: > From: Wei Yongjun > > data allocated with devm_kzalloc should not be freed using kfree, > because doing so causes a dangling pointer, and a subsequent > double free, use devm_kfree instead. > > Signed-off-by: Wei Yongjun > --- > drivers/gpu/drm/tegra/so

[PATCH -next] drm/tegra: sor: Fix invalid kfree of devm_kzalloc allocated data

2016-07-04 Thread weiyj...@163.com
From: Wei Yongjun data allocated with devm_kzalloc should not be freed using kfree, because doing so causes a dangling pointer, and a subsequent double free, use devm_kfree instead. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/tegra/sor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)