[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1432013163-20713-1-git-send-email-k.kozlowski@samsung.com>
Date: Tue, 19 May 2015 14:26:01 +0900
From: Krzysztof Kozlowski <k.kozlowski@...sung.com>
To: Sebastian Reichel <sre@...nel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: "H. Nikolaus Schaller" <hns@...delico.com>,
Krzysztof Kozlowski <k.kozlowski@...sung.com>
Subject: [RFC/RFT 0/2] power_supply: Fix NULL pointer dereference from uevent
Hi,
This is an idea to fix issue in bq27x00 driver (and probably in others)
reported by H. Nikolaus Schaller [0].
The fixes are marked RFC/RFT because:
1. I do not have bq27x00-like device. I confirmed this and tested on
modified drivers (max77693, ACPI AC). These drivers are not
impacted by the issue but one can easily adjust them to reproduce
the problem.
2. The first uevent coming from power_supply_register() is now
different because it won't contain device properties. I am
not sure how this impacts userspace.
Comments are welcomed.
[0] https://lkml.org/lkml/2015/5/18/152
Best regards,
Krzysztof
Krzysztof Kozlowski (2):
power_supply: Fix NULL pointer dereference during bq27x00_battery
probe
power_supply: Fix possible NULL pointer dereference on early uevent
drivers/power/power_supply_core.c | 59 +++++++++++++++++++++++++++++++++++----
include/linux/power_supply.h | 1 +
2 files changed, 54 insertions(+), 6 deletions(-)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists