Skip to content

Commit d6b7822

Browse files
committed
Merge tag 'input-for-v6.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input fixes from Dmitry Torokhov: - a check in pegasus-notetaker driver to validate the type of pipe when probing a new device - a fix for Cypress touch controller to correctly parse maximum number of touches. * tag 'input-for-v6.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: cyttsp5 - fix sensing configuration data structure Input: pegasus-notetaker - check pipe type when probing
2 parents 622322f + 5dc63e5 commit d6b7822

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/input/tablet/pegasus_notetaker.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ static int pegasus_probe(struct usb_interface *intf,
296296
pegasus->intf = intf;
297297

298298
pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress);
299+
/* Sanity check that pipe's type matches endpoint's type */
300+
if (usb_pipe_type_check(dev, pipe)) {
301+
error = -EINVAL;
302+
goto err_free_mem;
303+
}
304+
299305
pegasus->data_len = usb_maxpacket(dev, pipe);
300306

301307
pegasus->data = usb_alloc_coherent(dev, pegasus->data_len, GFP_KERNEL,

drivers/input/touchscreen/cyttsp5.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ struct cyttsp5_sensing_conf_data_dev {
111111
__le16 max_z;
112112
u8 origin_x;
113113
u8 origin_y;
114+
u8 panel_id;
114115
u8 btn;
115116
u8 scan_mode;
116117
u8 max_num_of_tch_per_refresh_cycle;

0 commit comments

Comments
 (0)