Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1519314 > unrolled thread
| Started by | Dan Carpenter <dan.carpenter@oracle.com> |
|---|---|
| First post | 2016-11-10 20:30 +0100 |
| Last post | 2016-11-10 20:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[patch] HID: wacom: Don't clear bits unintentionally Dan Carpenter <dan.carpenter@oracle.com> - 2016-11-10 20:30 +0100
| From | Dan Carpenter <dan.carpenter@oracle.com> |
|---|---|
| Date | 2016-11-10 20:30 +0100 |
| Subject | [patch] HID: wacom: Don't clear bits unintentionally |
| Message-ID | <sC3cR-268-5@gated-at.bofh.it> |
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> diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 0723ba8..1cf4608 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:
Back to top | Article view | linux.kernel
csiph-web