]> www.infradead.org Git - users/willy/pagecache.git/commit
regmap-irq: Add missing kfree()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Wed, 5 Feb 2025 00:43:43 +0000 (00:43 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 5 Feb 2025 11:55:42 +0000 (11:55 +0000)
commit32ffed055dcee17f6705f545b069e44a66067808
tree6b83fe168f8b3f6e150ebe6e0a47a097ea844dff
parent2014c95afecee3e76ca4a56956a936e23283f05b
regmap-irq: Add missing kfree()

Add kfree() for "d->main_status_buf" to the error-handling path to prevent
a memory leak.

Fixes: a2d21848d921 ("regmap: regmap-irq: Add main status register support")
Cc: stable@vger.kernel.org # v5.1+
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Link: https://patch.msgid.link/20250205004343.14413-1-jiashengjiangcool@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c