Skip to content

Commit c098363

Browse files
stuarthayhurstJiri Kosina
authored andcommitted
HID: corsair-void: Initialise memory for psy_cfg
power_supply_config psy_cfg was missing its initialiser, add it in. Fixes: 6ea2a6f ("HID: corsair-void: Add Corsair Void headset family driver") Cc: [email protected] Signed-off-by: Stuart Hayhurst <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 48e487b commit c098363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-corsair-void.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static void corsair_void_battery_remove_work_handler(struct work_struct *work)
553553
static void corsair_void_battery_add_work_handler(struct work_struct *work)
554554
{
555555
struct corsair_void_drvdata *drvdata;
556-
struct power_supply_config psy_cfg;
556+
struct power_supply_config psy_cfg = {};
557557
struct power_supply *new_supply;
558558

559559
drvdata = container_of(work, struct corsair_void_drvdata,

0 commit comments

Comments
 (0)