Commit 2aee30bb authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Miquel Raynal
Browse files

mtd: Add check for devm_kcalloc()



Add a check for devm_kcalloc() to ensure successful allocation.

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 1b61a598
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment