linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb()
@ 2019-11-27 15:15 Emiliano Ingrassia
  2019-11-27 15:17 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Emiliano Ingrassia @ 2019-11-27 15:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-usb

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
---
 drivers/usb/core/urb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index 0eab79f82ce4..da923ec17612 100644
--- a/drivers/usb/core/urb.c
+++ b/drivers/usb/core/urb.c
@@ -45,6 +45,7 @@ void usb_init_urb(struct urb *urb)
 	if (urb) {
 		memset(urb, 0, sizeof(*urb));
 		kref_init(&urb->kref);
+		INIT_LIST_HEAD(&urb->urb_list);
 		INIT_LIST_HEAD(&urb->anchor_list);
 	}
 }
--
2.24.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb()
  2019-11-27 15:15 [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb() Emiliano Ingrassia
@ 2019-11-27 15:17 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2019-11-27 15:17 UTC (permalink / raw)
  To: Emiliano Ingrassia; +Cc: linux-usb

On Wed, Nov 27, 2019 at 04:15:02PM +0100, Emiliano Ingrassia wrote:
> Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>

I can not take patches without any changelog text, sorry.

ALways describe _why_ you are making this change, not what the change
it.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-27 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27 15:15 [PATCH] usb: core: urb: explicitly initialize urb_list field in usb_init_urb() Emiliano Ingrassia
2019-11-27 15:17 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).