power_supply_powers calls added in 35b4c01e29bdd9632dabf9784ed3486333f00427
have to be called after power device is created. This patch also fixes the
second call - it has to be "ac" instead of "battery"
Signed-off-by: Przemo Firszt <redacted>
Signed-off-by: Chris Bagwell <redacted>
---
drivers/hid/hid-wacom.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
power_supply_powers calls added in 35b4c01e29bdd9632dabf9784ed3486333f00427
have to be called after power device is created. This patch also fixes the
second call - it has to be "ac" instead of "battery"
Signed-off-by: Przemo Firszt <redacted>
Signed-off-by: Chris Bagwell <redacted>
Hmm, seems valid. How did you notice? Have you seen crashes because of
wild pointers?
Hi Jiri,
Yes, the driver was unusable - 100% crashes during connection.
Chris came up with the solution, I did coding & testing.
The crash details are here: http://pastebin.com/ZVNZWaPs
regards,
Przemo
From: Jeremy Fitzhardinge <hidden> Date: 2012-02-06 17:34:42
On 02/06/2012 04:42 AM, Jiri Kosina wrote:
On Mon, 6 Feb 2012, przemo@firszt.eu wrote:
quoted
quoted
Hmm, seems valid. How did you notice? Have you seen crashes because of
wild pointers?
Hi Jiri,
Yes, the driver was unusable - 100% crashes during connection.
Okay, I thought that'd be the case.
Very sorry about that. I don't have a device to test with, so I should
have reviewed the code extra carefully.
Does the same bug apply to the Wii changes, which were of the same form?
J
Hmm, seems valid. How did you notice? Have you seen crashes because of
wild pointers?
Hi Jiri,
Yes, the driver was unusable - 100% crashes during connection.
Okay, I thought that'd be the case.
Very sorry about that. I don't have a device to test with, so I should
have reviewed the code extra carefully.
Does the same bug apply to the Wii changes, which were of the same form?
Hmm, seems valid. How did you notice? Have you seen crashes because of
wild pointers?
Hi Jiri,
Yes, the driver was unusable - 100% crashes during connection.
Okay, I thought that'd be the case.
Very sorry about that. I don't have a device to test with, so I should
have reviewed the code extra carefully.
Does the same bug apply to the Wii changes, which were of the same form?
I have now queued the patch below for the same pile as well.
Thanks for spotting it.
From: Jiri Kosina <redacted>
Subject: [PATCH] HID: wiimote: fix invalid power_supply_powers call
Analogically to d7cb3dbd1 ("HID: wacom: Fix invalid power_supply_powers
calls"), fix also the same occurence in wiimote driver.
Reported-by: przemo@firszt.eu
Signed-off-by: Jiri Kosina <redacted>
---
drivers/hid/hid-wiimote-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)