diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-11-10 22:25:39 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-11-15 12:11:50 +0100 |
commit | a35f09b84941fa186acbdd9b7266c7ef4660003c (patch) | |
tree | 889abcdf04260eb885b9d3d4b9a974056cbc64b0 /drivers/hid | |
parent | c0bf57411b6b03dd72d4d20f362ba1ca72244834 (diff) | |
download | linux-stable-a35f09b84941fa186acbdd9b7266c7ef4660003c.tar.gz linux-stable-a35f09b84941fa186acbdd9b7266c7ef4660003c.tar.bz2 linux-stable-a35f09b84941fa186acbdd9b7266c7ef4660003c.zip |
HID: wacom: Don't clear bits unintentionally
This is trying to clear the lower 32 bits but the type is wrong so it
clears everything.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/wacom_wac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 0723ba8906fa..1cf4608ae929 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -1765,7 +1765,7 @@ static int wacom_wac_pen_event(struct hid_device *hdev, struct hid_field *field, wacom_wac->hid_data.tipswitch |= value; return 0; case HID_DG_TOOLSERIALNUMBER: - wacom_wac->serial[0] = (wacom_wac->serial[0] & ~0xFFFFFFFF); + wacom_wac->serial[0] = (wacom_wac->serial[0] & ~0xFFFFFFFFULL); wacom_wac->serial[0] |= value; return 0; case WACOM_HID_WD_SENSE: |