* [PATCH] asix: Add check for usbnet_get_endpoints
@ 2024-01-03 3:35 Chen Ni
2024-01-03 6:12 ` Greg KH
2024-01-04 11:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2024-01-03 3:35 UTC (permalink / raw)
To: davem, edumazet, kuba, pabeni, christian.riesch, linux-usb,
netdev, linux-kernel
Cc: Chen Ni
Add check for usbnet_get_endpoints() and return the error if it fails
in order to transfer the error.
Fixes: 16626b0cc3d5 ("asix: Add a new driver for the AX88172A")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
drivers/net/usb/ax88172a.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/usb/ax88172a.c b/drivers/net/usb/ax88172a.c
index 3777c7e2e6fc..e47bb125048d 100644
--- a/drivers/net/usb/ax88172a.c
+++ b/drivers/net/usb/ax88172a.c
@@ -161,7 +161,9 @@ static int ax88172a_bind(struct usbnet *dev, struct usb_interface *intf)
u8 buf[ETH_ALEN];
struct ax88172a_private *priv;
- usbnet_get_endpoints(dev, intf);
+ ret = usbnet_get_endpoints(dev, intf);
+ if (ret)
+ return ret;
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv)
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] asix: Add check for usbnet_get_endpoints
2024-01-03 3:35 [PATCH] asix: Add check for usbnet_get_endpoints Chen Ni
@ 2024-01-03 6:12 ` Greg KH
2024-01-04 11:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2024-01-03 6:12 UTC (permalink / raw)
To: Chen Ni
Cc: davem, edumazet, kuba, pabeni, christian.riesch, linux-usb,
netdev, linux-kernel
On Wed, Jan 03, 2024 at 03:35:34AM +0000, Chen Ni wrote:
> Add check for usbnet_get_endpoints() and return the error if it fails
> in order to transfer the error.
>
> Fixes: 16626b0cc3d5 ("asix: Add a new driver for the AX88172A")
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
> drivers/net/usb/ax88172a.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- You have marked a patch with a "Fixes:" tag for a commit that is in an
older released kernel, yet you do not have a cc: stable line in the
signed-off-by area at all, which means that the patch will not be
applied to any older kernel releases. To properly fix this, please
follow the documented rules in the
Documentation/process/stable-kernel-rules.rst file for how to resolve
this.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] asix: Add check for usbnet_get_endpoints
2024-01-03 3:35 [PATCH] asix: Add check for usbnet_get_endpoints Chen Ni
2024-01-03 6:12 ` Greg KH
@ 2024-01-04 11:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-01-04 11:00 UTC (permalink / raw)
To: Chen Ni
Cc: davem, edumazet, kuba, pabeni, christian.riesch, linux-usb,
netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:
On Wed, 3 Jan 2024 03:35:34 +0000 you wrote:
> Add check for usbnet_get_endpoints() and return the error if it fails
> in order to transfer the error.
>
> Fixes: 16626b0cc3d5 ("asix: Add a new driver for the AX88172A")
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
> drivers/net/usb/ax88172a.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Here is the summary with links:
- asix: Add check for usbnet_get_endpoints
https://git.kernel.org/netdev/net/c/eaac6a2d26b6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-04 11:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 3:35 [PATCH] asix: Add check for usbnet_get_endpoints Chen Ni
2024-01-03 6:12 ` Greg KH
2024-01-04 11:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox