* re: HID: huion: Switch to generating report descriptor
@ 2014-07-31 9:40 Dan Carpenter
2014-08-11 18:09 ` Nikolai Kondrashov
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-07-31 9:40 UTC (permalink / raw)
To: spbnick; +Cc: linux-input
Hello Nikolai Kondrashov,
The patch f8dd5cb2c6d0: "HID: huion: Switch to generating report
descriptor" from Jul 23, 2014, leads to the following static checker
warning:
drivers/hid/hid-huion.c:126 huion_tablet_enable()
error: doing dma on the stack (buf)
drivers/hid/hid-huion.c
113 static int huion_tablet_enable(struct hid_device *hdev)
114 {
115 int rc;
116 struct usb_device *usb_dev = hid_to_usb_dev(hdev);
117 struct huion_drvdata *drvdata = hid_get_drvdata(hdev);
118 __le16 buf[6];
119
120 /*
121 * Read string descriptor containing tablet parameters. The specific
122 * string descriptor and data were discovered by sniffing the Windows
123 * driver traffic.
124 * NOTE: This enables fully-functional tablet mode.
125 */
126 rc = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0),
127 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN,
128 (USB_DT_STRING << 8) + 0x64,
129 0x0409, buf, sizeof(buf),
^^^
130 USB_CTRL_GET_TIMEOUT);
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HID: huion: Switch to generating report descriptor
2014-07-31 9:40 HID: huion: Switch to generating report descriptor Dan Carpenter
@ 2014-08-11 18:09 ` Nikolai Kondrashov
0 siblings, 0 replies; 2+ messages in thread
From: Nikolai Kondrashov @ 2014-08-11 18:09 UTC (permalink / raw)
To: Dan Carpenter; +Cc: linux-input
Hi Dan,
On 07/31/2014 12:40 PM, Dan Carpenter wrote:
> The patch f8dd5cb2c6d0: "HID: huion: Switch to generating report
> descriptor" from Jul 23, 2014, leads to the following static checker
> warning:
>
> drivers/hid/hid-huion.c:126 huion_tablet_enable()
> error: doing dma on the stack (buf)
Thanks a lot for notifying about the problem.
I just submitted two patches fixing this under subject "HID: huion: Fix "doing
dma on the stack"".
Sincerely,
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-11 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 9:40 HID: huion: Switch to generating report descriptor Dan Carpenter
2014-08-11 18:09 ` Nikolai Kondrashov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).