summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@oh.rr.com>2015-02-22 20:42:46 -0500
committerJiri Kosina <jkosina@suse.cz>2015-02-23 13:01:15 +0100
commitb94993f6fb3452628bb4678ea86df33ffbfdde8d (patch)
tree5d33b6b15b653d4cf84a5487c349f5f38fe3ec60 /drivers/hid
parent8b402c929d21a18e9a228d4ad6f0a076577cd63c (diff)
downloadop-kernel-dev-b94993f6fb3452628bb4678ea86df33ffbfdde8d.zip
op-kernel-dev-b94993f6fb3452628bb4678ea86df33ffbfdde8d.tar.gz
HID: sony: fix uninitialized per-controller spinlock
Per-controller spinlock needs to be properly initialized during device probe. [jkosina@suse.cz: massage changelog] [jkosina@suse.cz: drop hunk that has already been applied by previous patch] Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-sony.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index e87148d..1896c01 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -1944,6 +1944,8 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)
return -ENOMEM;
}
+ spin_lock_init(&sc->lock);
+
sc->quirks = quirks;
hid_set_drvdata(hdev, sc);
sc->hdev = hdev;
OpenPOWER on IntegriCloud