Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263259
b: refs/heads/master
c: 3b48c91
h: refs/heads/master
i:
  263257: 90477b6
  263255: 99e8f9e
v: v3
  • Loading branch information
Ping Cheng authored and Dmitry Torokhov committed Aug 16, 2011
1 parent 899dd0c commit 826b4d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a417ea4432db7fd1c91c19b129a3e3d2367b7ce4
refs/heads/master: 3b48c91cdf2d6827ce315b3b112310fa02198db0
10 changes: 6 additions & 4 deletions trunk/drivers/input/tablet/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,23 +320,25 @@ static int wacom_query_tablet_data(struct usb_interface *intf, struct wacom_feat
int limit = 0, report_id = 2;
int error = -ENOMEM;

rep_data = kmalloc(2, GFP_KERNEL);
rep_data = kmalloc(4, GFP_KERNEL);
if (!rep_data)
return error;

/* ask to report tablet data if it is 2FGT Tablet PC or
/* ask to report tablet data if it is MT Tablet PC or
* not a Tablet PC */
if (features->type == TABLETPC2FG) {
do {
rep_data[0] = 3;
rep_data[1] = 4;
rep_data[2] = 0;
rep_data[3] = 0;
report_id = 3;
error = usb_set_report(intf, WAC_HID_FEATURE_REPORT,
report_id, rep_data, 2);
report_id, rep_data, 4);
if (error >= 0)
error = usb_get_report(intf,
WAC_HID_FEATURE_REPORT, report_id,
rep_data, 3);
rep_data, 4);
} while ((error < 0 || rep_data[1] != 4) && limit++ < WAC_MSG_RETRIES);
} else if (features->type != TABLETPC) {
do {
Expand Down

0 comments on commit 826b4d8

Please sign in to comment.