Skip to contentSkip to conversation

pull-request: can 2024-07-01

PATCH New Marc Kleine-Budde 2 participants 3 messages Jul 1, 2024 – Jul 2, 2024

Subsystems (4)
lore
Share & tools
lore

Marc Kleine-Budde

author maintainer
#0 lore raw

cover pull-request: can 2024-07-01

Hello netdev-team,

this is a pull request of 1 patch for net/master.

Jimmy Assarsson's patch for the kvaser_usb adds a missing explicit initialization of the struct kvaser_usb_driver_info::family for the kvaser_usb_driver_info_leafimx.

regards,
Marc

---
The following changes since commit 134061163ee5ca4759de5c24ca3bd71608891ba7:

bnx2x: Fix multiple UBSAN array-index-out-of-bounds (2024-06-28 18:19:05 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can.git tags/linux-can-fixes-for-6.10-20240701

for you to fetch changes up to 19d5b2698c35b2132a355c67b4d429053804f8cc:

can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct (2024-07-01 08:55:16 +0200)

----------------------------------------------------------------
linux-can-fixes-for-6.10-20240701

----------------------------------------------------------------
Jimmy Assarsson (1):
can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct

 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c | 1 +
 1 file changed, 1 insertion(+)
author maintainer
#1 lore raw

PATCH 1/1 can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct

From: Jimmy Assarsson <[email protected]>

Explicitly set the 'family' driver_info struct member for leafimx. Previously, the correct operation relied on KVASER_LEAF being the first defined value in enum kvaser_usb_leaf_family.

Fixes e6c80e601053 ("can: kvaser_usb: kvaser_usb_leaf: fix CAN clock frequency regression")
---
 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c +1 -0
index 7292c81fc0cd..024169461cad 100644
@@ -125,6 +125,7 @@ static const struct kvaser_usb_driver_info kvaser_usb_driver_info_leaf_err_liste
 
 static const struct kvaser_usb_driver_info kvaser_usb_driver_info_leafimx = {
 	.quirks = 0,
+	.family = KVASER_LEAF,
 	.ops = &kvaser_usb_leaf_dev_ops,
 };
 

base-commit: 134061163ee5ca4759de5c24ca3bd71608891ba7

Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH net] can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct

This patch was applied to netdev/net.git (main) by Marc Kleine-Budde <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Marc Kleine-Budde <[email protected]>:

Quoted 6 lines · On Mon, 1 Jul 2024 10:03:22 +0200 you wrote:

From: Jimmy Assarsson <[email protected]>

Explicitly set the 'family' driver_info struct member for leafimx. Previously, the correct operation relied on KVASER_LEAF being the first defined value in enum kvaser_usb_leaf_family.

Quoted 7 lines
Fixes e6c80e601053 ("can: kvaser_usb: kvaser_usb_leaf: fix CAN clock frequency regression")

[...]

Here is the summary with links:
- [net] can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct

    https://git.kernel.org/netdev/net/c/19d5b2698c35

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html