]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: power_allocator: allocate with kcalloc what you free with kfree
authorJavi Merino <javi.merino@arm.com>
Tue, 25 Aug 2015 18:22:35 +0000 (19:22 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 29 Aug 2015 17:10:47 +0000 (10:10 -0700)
commit0df33bd5bc544748564ae30699577536cd77cff6
treed04a620c88f9c0107a9941bec72d9efcd8f1e98d
parentf13c07bbbf3d65f884216f4ff1daa5db72847fad
thermal: power_allocator: allocate with kcalloc what you free with kfree

Commit 71048bfe37ce ("thermal: power_allocator: do not use devm*
interfaces") forgot to change a devm_kcalloc() to just kcalloc(), but
it's corresponding devm_kfree() was changed to kfree().  Allocate with
kcalloc() to match the kfree().

Fixes: 71048bfe37ce ("thermal: power_allocator: do not use devm* interfaces")
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/thermal/power_allocator.c