Vincent Mailhol and Greg Kroah-Hartman
38c4f5dd91
usb: deprecate the third argument of usb_maxpacket()
...
[ Upstream commit 0f08c2e745 ]
This is a transitional patch with the ultimate goal of changing the
prototype of usb_maxpacket() from:
| static inline __u16
| usb_maxpacket(struct usb_device *udev, int pipe, int is_out)
into:
| static inline u16 usb_maxpacket(struct usb_device *udev, int pipe)
The third argument of usb_maxpacket(): is_out gets removed because it
can be derived from its second argument: pipe using
usb_pipeout(pipe). Furthermore, in the current version,
ubs_pipeout(pipe) is called regardless in order to sanitize the is_out
parameter.
In order to make a smooth change, we first deprecate the is_out
parameter by simply ignoring it (using a variadic function) and will
remove it later, once all the callers get updated.
The body of the function is reworked accordingly and is_out is
replaced by usb_pipeout(pipe). The WARN_ON() calls become unnecessary
and get removed.
Finally, the return type is changed from __u16 to u16 because this is
not a UAPI function.
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr >
Link: https://lore.kernel.org/r/20220317035514.6378-2-mailhol.vincent@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Stable-dep-of: 69aeb50731 ("Input: pegasus-notetaker - fix potential out-of-bounds access")
Signed-off-by: Sasha Levin <sashal@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-12-07 06:08:21 +09:00
..
2023-08-30 16:23:11 +02:00
2023-11-08 17:30:47 +01:00
2024-06-16 13:32:19 +02:00
2024-10-22 15:39:23 +02:00
2024-12-14 19:48:21 +01:00
2025-10-29 14:01:08 +01:00
2024-10-22 15:39:29 +02:00
2024-06-21 14:54:12 +02:00
2023-11-20 11:06:52 +01:00
2025-06-04 14:37:05 +02:00
2025-06-27 11:04:03 +01:00
2024-06-16 13:32:33 +02:00
2025-04-10 14:30:48 +02:00
2024-04-13 12:58:29 +02:00
2025-08-28 16:22:56 +02:00
2024-08-19 05:40:47 +02:00
2025-10-29 14:01:15 +01:00
2025-05-02 07:41:12 +02:00
2024-11-17 14:59:37 +01:00
2024-12-14 19:48:16 +01:00
2025-08-28 16:22:53 +02:00
2023-09-23 11:01:05 +02:00
2023-10-10 21:53:33 +02:00
2025-06-27 11:04:02 +01:00
2024-02-23 08:41:53 +01:00
2025-12-07 06:08:21 +09:00
2025-09-04 14:41:42 +02:00
2025-05-02 07:41:01 +02:00
2025-06-04 14:37:09 +02:00
2024-09-04 13:17:30 +02:00
2025-12-07 06:08:08 +09:00
2025-05-02 07:41:07 +02:00
2024-12-14 19:48:14 +01:00
2025-06-27 11:04:09 +01:00
2023-07-27 08:43:37 +02:00
2025-06-27 11:04:09 +01:00
2023-10-10 21:53:35 +02:00
2024-10-17 15:07:38 +02:00
2024-09-12 11:06:42 +02:00
2025-10-29 14:01:15 +01:00
2024-01-25 14:37:49 -08:00
2023-08-30 16:23:19 +02:00
2024-07-05 09:12:55 +02:00
2025-10-29 14:01:15 +01:00
2025-12-07 06:08:17 +09:00
2025-10-29 14:01:15 +01:00
2025-10-02 13:35:36 +02:00
2025-10-29 14:01:16 +01:00
2025-09-11 17:16:06 +02:00
2023-12-13 18:26:56 +01:00
2024-09-04 13:17:30 +02:00
2025-08-28 16:22:58 +02:00
2023-12-20 15:44:30 +01:00
2025-10-29 14:01:15 +01:00
2024-01-25 14:37:50 -08:00
2025-06-04 14:36:58 +02:00
2024-02-23 08:42:18 +01:00
2024-06-21 14:53:27 +02:00
2024-12-14 19:48:32 +01:00
2025-03-13 12:47:19 +01:00
2024-06-21 14:53:19 +02:00
2024-05-02 16:23:44 +02:00
2023-09-19 12:20:06 +02:00
2024-06-21 14:54:13 +02:00
2024-06-16 13:32:17 +02:00
2024-06-21 14:53:46 +02:00
2024-06-21 14:52:49 +02:00
2025-10-29 14:01:15 +01:00
2025-12-07 06:08:09 +09:00
2025-08-28 16:22:31 +02:00
2025-08-28 16:22:54 +02:00
2024-09-12 11:06:41 +02:00
2024-07-18 13:05:43 +02:00
2025-02-01 18:22:24 +01:00
2024-04-13 12:59:22 +02:00
2025-06-27 11:04:20 +01:00
2025-02-01 18:22:29 +01:00
2025-06-27 11:04:21 +01:00
2024-09-12 11:06:41 +02:00
2025-07-17 18:27:40 +02:00
2024-10-17 15:07:44 +02:00
2025-04-10 14:30:48 +02:00
2023-11-20 11:06:56 +01:00
2023-09-19 12:20:22 +02:00
2023-10-10 21:53:28 +02:00
2025-08-28 16:22:43 +02:00
2024-03-26 18:21:53 -04:00
2023-07-27 08:43:37 +02:00
2025-10-02 13:35:39 +02:00
2024-03-26 18:21:45 -04:00
2025-10-29 14:01:18 +01:00
2024-07-05 09:12:27 +02:00
2023-08-26 15:26:43 +02:00
2023-10-25 11:54:20 +02:00
2025-07-17 18:27:44 +02:00
2024-08-19 05:41:10 +02:00
2024-08-19 05:41:07 +02:00
2025-10-29 14:01:15 +01:00
2024-06-21 14:52:45 +02:00
2024-08-19 05:40:58 +02:00
2024-12-14 19:47:45 +01:00
2025-03-13 12:46:56 +01:00
2023-11-08 17:30:43 +01:00
2024-07-05 09:12:41 +02:00
2024-01-05 15:12:25 +01:00
2024-06-21 14:53:28 +02:00
2025-03-13 12:47:06 +01:00
2024-12-14 19:48:30 +01:00
2023-10-10 21:53:35 +02:00
2024-12-14 19:48:09 +01:00
2024-07-18 13:05:44 +02:00
2024-03-15 10:48:20 -04:00
2023-10-25 11:54:15 +02:00
2025-08-28 16:22:55 +02:00
2023-08-26 15:26:48 +02:00
2025-10-29 14:01:17 +01:00
2025-06-27 11:04:21 +01:00
2025-12-07 06:08:18 +09:00
2024-12-14 19:47:40 +01:00
2025-08-28 16:22:58 +02:00
2024-07-05 09:12:43 +02:00
2025-07-17 18:27:56 +02:00
2023-09-02 09:18:12 +02:00
2025-08-28 16:22:35 +02:00
2024-03-26 18:21:53 -04:00
2025-10-29 14:01:15 +01:00
2024-12-14 19:48:05 +01:00
2025-10-29 14:01:21 +01:00
2024-12-14 19:47:56 +01:00
2024-06-21 14:54:09 +02:00
2024-10-17 15:08:33 +02:00
2024-04-13 12:58:31 +02:00
2025-09-04 14:41:42 +02:00
2024-06-21 14:54:10 +02:00
2025-05-02 07:41:01 +02:00
2024-06-21 14:53:03 +02:00
2023-09-19 12:20:04 +02:00
2023-07-27 08:43:40 +02:00
2024-07-05 09:12:50 +02:00
2024-08-19 05:40:45 +02:00
2024-04-13 12:59:39 +02:00
2024-01-25 14:37:40 -08:00
2025-10-29 14:01:15 +01:00
2023-11-20 11:06:52 +01:00
2025-03-13 12:47:23 +01:00
2025-08-28 16:22:54 +02:00
2025-10-29 14:01:15 +01:00
2023-12-13 18:27:04 +01:00
2023-07-27 08:43:58 +02:00
2024-11-17 14:59:35 +01:00
2025-06-04 14:37:08 +02:00
2024-02-23 08:41:59 +01:00
2023-11-08 17:30:47 +01:00
2025-10-29 14:01:23 +01:00
2023-08-11 11:57:55 +02:00
2025-02-01 18:22:28 +01:00
2025-08-28 16:22:31 +02:00
2025-10-29 14:01:15 +01:00
2025-04-10 14:30:53 +02:00
2024-10-17 15:07:44 +02:00
2023-11-28 16:54:53 +00:00
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
2023-08-30 16:23:18 +02:00
2023-07-27 08:44:13 +02:00
2025-10-29 14:01:15 +01:00
2025-06-04 14:37:05 +02:00
2024-03-15 10:48:23 -04:00
2024-03-26 18:22:01 -04:00
2023-11-08 17:30:47 +01:00
2025-10-29 14:01:15 +01:00
2024-05-17 11:48:07 +02:00
2025-02-01 18:22:32 +01:00
2024-07-18 13:05:44 +02:00
2024-12-14 19:47:45 +01:00
2023-07-27 08:44:31 +02:00
2024-05-02 16:23:46 +02:00
2025-12-07 06:08:12 +09:00
2025-08-28 16:22:43 +02:00
2025-06-27 11:04:09 +01:00
2025-10-29 14:01:17 +01:00
2024-03-01 13:16:50 +01:00
2024-03-15 10:48:20 -04:00
2025-10-29 14:01:15 +01:00
2025-10-29 14:01:15 +01:00
2024-12-19 18:06:14 +01:00
2024-02-23 08:41:54 +01:00
2024-07-05 09:12:55 +02:00
2024-06-21 14:53:18 +02:00
2024-08-19 05:40:57 +02:00
2023-07-27 08:44:43 +02:00
2024-04-13 12:57:58 +02:00
2025-06-04 14:37:09 +02:00
2025-10-29 14:01:15 +01:00
2025-06-04 14:36:55 +02:00
2024-05-02 16:23:33 +02:00
2024-04-13 12:59:31 +02:00
2024-02-23 08:41:51 +01:00
2025-12-07 06:08:21 +09:00
2024-06-21 14:53:06 +02:00
2024-12-14 19:48:17 +01:00
2024-10-17 15:07:57 +02:00
2024-04-13 12:59:20 +02:00
2023-08-26 15:26:53 +02:00
2024-02-23 08:41:55 +01:00
2025-01-09 13:24:56 +01:00
2025-01-09 13:24:55 +01:00
2023-12-08 08:46:13 +01:00
2025-08-28 16:22:37 +02:00