Skip to content
Commit 94d41547 authored by Richard Genoud's avatar Richard Genoud Committed by Alexandre Belloni
Browse files

rtc: tps6594: Fix memleak in probe



struct rtc_device is allocated twice in probe(), once with
devm_kzalloc(), and then with devm_rtc_allocate_device().

The allocation with devm_kzalloc() is lost and superfluous.

Fixes: 9f67c1e6 ("rtc: tps6594: Add driver for TPS6594 RTC")
Signed-off-by: default avatarRichard Genoud <richard.genoud@bootlin.com>
Link: https://lore.kernel.org/r/20240618141851.1810000-2-richard.genoud@bootlin.com


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 1613e604
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment