Commit 1b61a598 authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Miquel Raynal
Browse files

mtd: Replace kcalloc() with devm_kcalloc()



Replace kcalloc() with devm_kcalloc() to prevent memory leaks in case of
errors.

Fixes: 78c08247 ("mtd: Support kmsg dumper based on pstore/blk")
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: default avatarJiasheng Jiang <jiashengjiangcool@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 9ea13d9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment