A small patch series dedicated to strengthening error handling and
readability in drivers/usb/core/hub.c.
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
---
Changes in v3:
- Added INT typecast to unsigned size_t to prevent unexpected behavior,
as reported by Sashiko.
- Link to v2: https://patch.msgid.link/20260721-usb_core_patches_2-v2-0-05069c892fbf@kroah.com
Changes in v2:
- Added a patch rearranging error handling logic.
- Link to v1: https://patch.msgid.link/20260714-usb_core_patches_2-v1-1-4229a368a633@kroah.com
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
Griffin Kroah-Hartman (2):
usb: core: Strengthen error handling in hub_hub_status()
usb: core: reformat error handling and messages
drivers/usb/core/hub.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
change-id: 20260714-usb_core_patches_2-a3eb9d1b7b9e
Best regards,
--
Griffin Kroah-Hartman <griffin@kroah.com>