Skip to content
Commit 720bc782 authored by Stefan Weil's avatar Stefan Weil Committed by Kevin Hilman
Browse files

OMAP: PM: SmartReflex: Fix possible memory leak



sr_info was allocated and needs a kfree before returning.

This error was reported by cppcheck:
arch/arm/mach-omap2/smartreflex.c:837: error: Memory leak: sr_info

To: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
Acked-by: default avatarShweta Gulati <shweta.gulati@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 62270119
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment