From 43f8b95bd7a0d530d1bf7b4b576bc69f9cd20840 Mon Sep 17 00:00:00 2001 From: Strawing Date: Thu, 10 Oct 2024 22:05:02 +0200 Subject: [PATCH] Fix uninitialized pointer problem This bq_err refer to the uninitialized pointer *bq, which can cause kernel panic while booting up. --- drivers/power/supply/ti/bq2597x_charger_pipa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/supply/ti/bq2597x_charger_pipa.c b/drivers/power/supply/ti/bq2597x_charger_pipa.c index b934161ef4041..31e95a4ae6827 100644 --- a/drivers/power/supply/ti/bq2597x_charger_pipa.c +++ b/drivers/power/supply/ti/bq2597x_charger_pipa.c @@ -2554,7 +2554,6 @@ static int bq2597x_charger_probe(struct i2c_client *client, { struct bq2597x *bq; int ret; - bq_err("enter cp successfully-cxl"); bq = devm_kzalloc(&client->dev, sizeof(struct bq2597x), GFP_KERNEL); if (!bq) return -ENOMEM;