From: Dan Carpenter Date: Thu, 10 Nov 2016 19:25:39 +0000 (+0300) Subject: HID: wacom: Don't clear bits unintentionally X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a35f09b84941fa186acbdd9b7266c7ef4660003c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jiri Kosina --- 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: