diff options
author | Jiasheng Jiang <jiashengjiangcool@gmail.com> | 2025-02-05 02:31:40 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-25 10:43:38 +0200 |
commit | 7312fc9dde26712f646f9c67713ec8033ec9a002 (patch) | |
tree | 248683a3349f5fc15ea3906656d3223faa813174 /drivers/clocksource/timer-stm32-lp.c | |
parent | 5ad7308011e8bf2407ee995d52661b54e7120245 (diff) |
mtd: Replace kcalloc() with devm_kcalloc()
commit 1b61a59876f0eafc19b23007c522ee407f55dbec upstream.
Replace kcalloc() with devm_kcalloc() to prevent memory leaks in case of
errors.
Fixes: 78c08247b9d3 ("mtd: Support kmsg dumper based on pstore/blk")
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clocksource/timer-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions