We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f0a51 commit 5597bfbCopy full SHA for 5597bfb
drivers/regulator/tps65218-regulator.c
@@ -326,6 +326,8 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
326
/* Allocate memory for strobes */
327
tps->strobes = devm_kzalloc(&pdev->dev, sizeof(u8) *
328
TPS65218_NUM_REGULATOR, GFP_KERNEL);
329
+ if (!tps->strobes)
330
+ return -ENOMEM;
331
332
for (i = 0; i < ARRAY_SIZE(regulators); i++) {
333
rdev = devm_regulator_register(&pdev->dev, ®ulators[i],
0 commit comments